'Etc'에 해당되는 글 115건

  1. Redis 사용
  2. Redis(Windows OS) 복제 구성하기 2
  3. Redis - Windows 설치하기 2
  4. MySQL을 대체한 RDBMS F1 1
  5. 스터디 발표 자료 - 관리와 배포
  6. log rotate 처리하기 - window os
  7. [펌] Global Lock, MongoDB 2.0 vs 2.2
  8. 해외 NoSQL 관련 JOB 수요
  9. ipv6에 대해 고려중이신가요?
  10. SQL 책 추천(강력 추천)

Redis 사용




Redis
View more PowerPoint from knight1128
Redis to the Rescue (Buzzwords Berlin)
View more presentations from Wooga



'Etc' 카테고리의 다른 글

MongoDB 성능 모니터링  (0) 2012.07.11
인메모리DB, 틈새에서 대세로? memSQL  (2) 2012.06.26
Redis(Windows OS) 복제 구성하기  (2) 2012.06.07
Redis - Windows 설치하기  (2) 2012.06.07
MySQL을 대체한 RDBMS F1  (1) 2012.06.01


참고 링크

http://misoin.wordpress.com/2012/06/05/redis-%EB%B3%B5%EC%A0%9C-masterslaves/


Redis를 Windows 설치 하기

http://judydba.tistory.com/201



1. 설정 파일 생성

C:\Redis\Config 디렉토리에 redis.conf 파일을 복사하여 redis_master.conf, redis_slave.conf 파일을 생성. 

## Redis_master.conf

Port : 7379

Bind : 아이피주소

logfile D:\DB\Redis\log\master_redis.log

dbfilename D:\DB\Redis\dump_master.rdb


-- Security Sectioin

Requirepass의 주석을 해제. 원하는 비밀번호 생성

##. Redis_slave.conf

Port : 8379

Bind : 아이피주소

logfile D:\DB\Redis\log\redis_slave.log

dbfilename D:\DB\Redis\dump_slave.rdb

-- replication section

slaveof 아이피주소 7379

-- master auth

masterauth foobared

-- 주석 제거

repl-ping-slave-period 10

repl-timeout 60


2. 윈도우 서비스 등록

sc create "REDIS_Master" binpath= "c:\Redis\RedisService.exe C:\Redis\Config\redis_master.conf" start= "auto" DisplayName= "REDIS_Master"


sc create "REDIS_Slave" binpath= "c:\Redis\RedisService.exe C:\Redis\Config\redis_slave.conf" start= "auto" DisplayName= "REDIS_Slave"


3. 로그 확인

## master Server

[6624] 07 Jun 16:58:40 # Windows does not support daemonize. Start Redis as service

[6624] 07 Jun 16:58:40 * Server started, Redis version 2.4.5

[6624] 07 Jun 16:58:40 * DB loaded from disk: 0 seconds

[6624] 07 Jun 16:58:40 * The server is now ready to accept connections on port 7379

[6624] 07 Jun 16:58:45 * Slave ask for synchronization

[6624] 07 Jun 16:58:45 * Starting BGSAVE for SYNC

[6624] 07 Jun 16:58:45 * Foregroud saving started by pid 6624

[6624] 07 Jun 16:58:45 * DB saved on disk

[6624] 07 Jun 16:58:45 * Background saving terminated with success

[6624] 07 Jun 16:58:45 * Synchronization with slave succeeded


## Slave Server

[1044] 07 Jun 16:58:45 * The server is now ready to accept connections on port 8379

[1044] 07 Jun 16:58:45 * Connecting to MASTER...

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync started

[1044] 07 Jun 16:58:45 * Non blocking connect for SYNC fired the event.

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync: receiving 10 bytes from master

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync: Loading DB in memory

[1044] 07 Jun 16:58:45 * MASTER <-> SLAVE sync: Finished with success


4. 연결 및 복제 테스트
## master 서버 연결
--a는 패스워드이다. 복제간 테스트 할때 conf 파일에 설정된 정보

## Slave 서버 연결

복제 테스트 완료!!.



'Etc' 카테고리의 다른 글

인메모리DB, 틈새에서 대세로? memSQL  (2) 2012.06.26
Redis 사용  (0) 2012.06.07
Redis - Windows 설치하기  (2) 2012.06.07
MySQL을 대체한 RDBMS F1  (1) 2012.06.01
스터디 발표 자료 - 관리와 배포  (0) 2012.05.30

Redis - Windows 설치하기


메모리 DB 전용으로 사용될 Redis 테스트할 기회가 생겨 Redis Windows에 설치하게 되었다. 

Redis windows Version Download

https://github.com/dmajkic/redis/downloads

Redis 연구노트

http://kerocat.tistory.com/1


Redis Windows

https://github.com/kcherenkov/redis-windows-service

http://suretalent.blogspot.kr/2011/11/installing-redis-database-as-windows.html

https://github.com/kcherenkov/redis-windows-service/downloads

http://maxivak.com/getting-started-with-redis-and-asp-net-mvc-under-windows/

 

1. 디렉토리 생성

가."c:\redis\" 폴더에 압축 파일 해제

 

나. Data 폴더 생성

d:\db\Redis\

 

다. Config 폴더 생성

c:\Redis>Config


2. 설정 파일 이동

c:\Redis\Config로 redis.conf 파일을 복사하여 이동 


redis.conf: 수정 내용

#daemonize yes (windows 버전은 지원되지 않는다)

bind 127.0.0.1 (don't do this if you need to access redis from another computer)

loglevel notice

logfile d:\DB\redis\log\redis.log

dir D:\DB\redis\

 

3. 서비스 실행 파일 다운로드

https://github.com/kcherenkov/redis-windows-service/downloads

위의 경로를 통하여 실행 파일을 다운로드 받아 c:\redis\ 폴더에 저장

 

4. 윈도우 서비스 등록

sc create "REDIS001" binpath= "c:\Redis\RedisService_1.exe C:\Redis\Config\redis.conf" start= "auto" DisplayName= "Redis"

Where:

%name% -- name of service instance, ex. redis-instance;

%binpath% -- path to this project exe file, ex. C:\Program Files\redis\RedisService.exe;

%configpath% -- path to redis configuration file, ex. E:\Redis\redis.conf;

 

5. 윈도우 서비스 삭제       

sc delete "REDIS001"


6. 클라이언트 접속 확인

7. 로그파일 확인

[8888] 07 Jun 14:20:18 * Server started, Redis version 2.4.5

[8888] 07 Jun 14:20:18 # Open data file D:\DB\Redis\dump.rdb: No such file or directory

[8888] 07 Jun 14:20:18 * The server is now ready to accept connections on port 6379

[8888] 07 Jun 14:35:19 * 1 changes in 900 seconds. Saving...

[8888] 07 Jun 14:35:19 * Foregroud saving started by pid 8888

[8888] 07 Jun 14:35:19 * DB saved on disk

[8888] 07 Jun 14:35:19 * Background saving terminated with success



'Etc' 카테고리의 다른 글

Redis 사용  (0) 2012.06.07
Redis(Windows OS) 복제 구성하기  (2) 2012.06.07
MySQL을 대체한 RDBMS F1  (1) 2012.06.01
스터디 발표 자료 - 관리와 배포  (0) 2012.05.30
log rotate 처리하기 - window os  (0) 2012.05.29

MySQL을 대체한 RDBMS F1

다양한 DBMS가 나오고 있습니다. 이번에는 구글에서 F1이라는 mysql을 대체한 NOSQL + MYSQL의 장점을 따서 나오는 새로운 데이타베이스를 만들었군요.


http://www.i-programmer.info/news/84-database/4286-googles-f1-scalable-alternative-to-mysql.html
http://static.googleusercontent.com/external_content/untrusted_dlcp/research.google.com/en/us/pubs/archive/38125.pdf


Wednesday, 30 May 2012 10:13

Google has moved its advertising services from MySQL to a new database, created in-house, called F1. The new system combines the best of NoSQL and SQL approaches.

According to Google Research, many of the services that are critical to Google’s ad business have historically been backed by MySQL, but Google has recently migrated several of these services to F1, a new RDBMS developed at Google. The team at Google Research says that F1 gives the benefits of NoSQL systems (scalability, fault tolerance, transparent sharding, and cost benefits) with the ease of use and transactional support of an RDBMS.

Google Research has developed F1 to provide relational database features such as a parallel SQL query engine and transactions on a highly distributed storage system that scales on standard hardware.

 

 f1



'Etc' 카테고리의 다른 글

Redis(Windows OS) 복제 구성하기  (2) 2012.06.07
Redis - Windows 설치하기  (2) 2012.06.07
스터디 발표 자료 - 관리와 배포  (0) 2012.05.30
log rotate 처리하기 - window os  (0) 2012.05.29
[펌] Global Lock, MongoDB 2.0 vs 2.2  (0) 2012.05.25

몽고DB 스터디 발표 자료입니다.


배포와 관리.ppt


'Etc' 카테고리의 다른 글

Redis - Windows 설치하기  (2) 2012.06.07
MySQL을 대체한 RDBMS F1  (1) 2012.06.01
log rotate 처리하기 - window os  (0) 2012.05.29
[펌] Global Lock, MongoDB 2.0 vs 2.2  (0) 2012.05.25
해외 NoSQL 관련 JOB 수요  (0) 2012.05.23

안녕하세요. 주디아줌마입니다.

몽고DB의 경우 따로 로그를 비워내지 않으면 로그 파일이 무한정 커지게 됩니다.  Windows 환경의 경우 Shell명령을 2.0.3 이후 버젼부터 지원됩니다. 자동으로 rotate되면 좋을 텐데 아직 지원이 안되네요.


http://www.mongodb.org/display/DOCS/Logging

The logRotate command is available on Windows in version 2.0.3 and higher

> use admin

switched to db admin

> db.runCommand({logRotate: 1});

{ "ok" : 1 }




'Etc' 카테고리의 다른 글

MySQL을 대체한 RDBMS F1  (1) 2012.06.01
스터디 발표 자료 - 관리와 배포  (0) 2012.05.30
[펌] Global Lock, MongoDB 2.0 vs 2.2  (0) 2012.05.25
해외 NoSQL 관련 JOB 수요  (0) 2012.05.23
ipv6에 대해 고려중이신가요?  (0) 2012.05.17

charsysm;s 블로그
http://charsyam.wordpress.com/2012/05/24/%EB%B0%9C-%EB%B2%88%EC%97%AD-%EC%9E%98%EA%B0%80-global-lock-mongodb-2-0-vs-2-2/ 


몽고DB 2.2 Release Note
http://www.mongodb.org/display/DOCS/2.2+Release+Notes


몽고DB 2.2 중요 이슈
1. Global lock 의 제거
2. 데이타베이스 수준까지의 락 제어. (데이터베이스 lock을 collectiion 수준의 lock으로 변경되겠지요?...) (점점 다른 dbms에 지원되는 lock까지.ㅋㅋ)


개선 부분
global reader/writer lock 의 제거 – 첫 시도로 database level lock
PageFaultException 구조 – page fault 시에 Lock 양보.
점점 더 개선되는 모습들이 보입니다. ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ


charsysm's님의 블로그에서 확인하세요^^.

'Etc' 카테고리의 다른 글

스터디 발표 자료 - 관리와 배포  (0) 2012.05.30
log rotate 처리하기 - window os  (0) 2012.05.29
해외 NoSQL 관련 JOB 수요  (0) 2012.05.23
ipv6에 대해 고려중이신가요?  (0) 2012.05.17
SQL 책 추천(강력 추천)  (0) 2012.05.16

해외 NoSQL 관련 JOB 수요

'Etc' 카테고리의 다른 글

log rotate 처리하기 - window os  (0) 2012.05.29
[펌] Global Lock, MongoDB 2.0 vs 2.2  (0) 2012.05.25
ipv6에 대해 고려중이신가요?  (0) 2012.05.17
SQL 책 추천(강력 추천)  (0) 2012.05.16
몽고DB 책 소개  (0) 2012.05.16

안녕하세요. 주디아줌마입니다.

   아침에 열심히 몽고DB에 공부중에 있는데, 갑자기  IPv6에 체크 가능한지 개발자님께서 문의하셨다. 큭.... 전혀 생각하지 않았던 것인지라.. 흑.... IPv4의 주소가 작년인지 모르지만 모두 고갈되었단다. 데이타모델링시 ipv6에 대한 고려가 필요해 보인다.


참고 사이트

http://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses

http://stackoverflow.com/questions/1076714/max-length-for-client-ip-address

http://stackoverflow.com/questions/774536/formatting-ipv6-as-an-int-in-c-sharp-and-storing-it-in-sql-server


※. IPv4 주소 형식
 : 128 bit 구성

127.0.0.1

※. IPv6 주소 형식
: IPv4에 비하여 2^96배 만큼 확장된 주소 공간을 가짐
: 128bit를 16bit씩 나누어 콜론 (:)으로 구분 짓고, 각각의 16bits 그룹은 16진수로 표현

2001:0db8:85a3:0000:0000:8a2e:0370:7334


※. SQL Server에서 IPv6 주소 형식 설정

select *
from sys.dm_tcp_listener_states
order by listener_id asc

--listener_id	ip_address	is_ipv4	port	type	type_desc	state	state_desc	start_time
--1	::	0	49804	0	TSQL	0	ONLINE	2012-05-17 04:09:39.790
--2	0.0.0.0	1	49804	0	TSQL	0	ONLINE	2012-05-17 04:09:39.793
--3	::	0	50404	0	TSQL	0	ONLINE	2012-05-17 04:09:39.797
--4	0.0.0.0	1	50404	0	TSQL	0	ONLINE	2012-05-17 04:09:39.800
--5	::	0	5022	2	DATABASE_MIRRORING	0	ONLINE	2012-05-17 04:09:42.293
--6	0.0.0.0	1	5022	2	DATABASE_MIRRORING	0	ONLINE	2012-05-17 04:09:42.297

exec sp_readerrorlog
go

--LogDate	ProcessInfo	Text
--2012-05-17 13:09:39.790	spid13s	Server is listening on [ 'any'  49804].
--2012-05-17 13:09:39.790	spid13s	Server is listening on [ 'any'  49804].

SQL Server Configuration Manager를 통해서 TCP IP 부분의 IPv6 정보를 활성화해주면 된다.


※. IPv4 and IPv6 저장
  그렇다면 과연 어떻게 저장 타입을 어떻게 바꿔줘야 하나? 기존 varchar(15) 또는 char(15)이었을 텐데...  SQL Server에서는 sys.dm_tcp_listener_states View에서 보면  ip 정보를 nvarchar(45)으로 size으로 확장 저장해주고 있다.  


자, 그렇다면 바로 ip로 저장된 컬럼의 사이즈를 변경이 필요해 보이지 않는가?






'Etc' 카테고리의 다른 글

[펌] Global Lock, MongoDB 2.0 vs 2.2  (0) 2012.05.25
해외 NoSQL 관련 JOB 수요  (0) 2012.05.23
SQL 책 추천(강력 추천)  (0) 2012.05.16
몽고DB 책 소개  (0) 2012.05.16
DB 개체 스크립트 하기  (0) 2012.04.25

SQL 책 추천(강력 추천)

안녕하세요. 주디아줌마입니다.

알마전에 출간된 SQL 운영과 튜닝 관련 책입니다. 운영 DBA에게 기본서라고도 할 수 있습니다. 초보자가 보기에는 어려운 내용으로 구성되어 있습니다. 

http://www.yes24.com/24/goods/6712482



주디아줌마 리뷰

  이 책을 3주간 보면서 "우와~" 감탄사가 저절로 나왔다. 이 책을 간단하게 말하면, "운영 DBA를 위한 필독서"라고 할 수가 있는데,  DB 운영관련 자료들이 인터넷을 통한 자료로 공유가 되었을 뿐  체계적으로 정리된 책으로는  없었던 것이 현실이다. 책의 내용은 설치, 인덱스, 모니터링, 튜닝, 고가용성, BI 까지 두루두루 실제 IT 업계에 종사하고 있는 DBA들이 경험을 바탕으로 한 책이어서인지 내용의 깊이가 다른 정말 값진 책이다. 사실, 책의 내용들이 알짜 정보들이라 나 조차도 공유를(ㅋㅋㅋ) 하지 않은 내용이라...(혼자 잘 먹고 잘살려고 ㅠㅠ...). 책으로 공유해주신거 다시금 감사합니다. 내가 제일 가장 재미있게 읽었던 부분은 "06. 잠금"으로, 가장 어려운 부분을 가장 쉽게 풀어서 재미있고 쉽게 이해할 수 있어으며, 개인적인 생각으로 sql troubleshooting 관련 부분을 심도있게 다룬 2판도 기대해봅니다.


'Etc' 카테고리의 다른 글

해외 NoSQL 관련 JOB 수요  (0) 2012.05.23
ipv6에 대해 고려중이신가요?  (0) 2012.05.17
몽고DB 책 소개  (0) 2012.05.16
DB 개체 스크립트 하기  (0) 2012.04.25
몽고DB Replicated Shard Cluster + Arbitor  (0) 2012.03.19