WEB开发网
开发学院服务器云计算 Redis安装及主从配置 阅读

Redis安装及主从配置

 2012-07-18 19:36:33 来源:WEB开发网   
核心提示:对于从结点显示的信息如下: #[597] 26 Sep 18:40:29 * Server started, Redis version 2.2.12 [597] 26 Sep 18:40:29 # WARNING overco
对于从结点显示的信息如下:
#[597] 26 Sep 18:40:29 * Server started, Redis version 2.2.12
[597] 26 Sep 18:40:29 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[597] 26 Sep 18:40:29 * The server is now ready to accept connections on port 6379
[597] 26 Sep 18:40:29 - 0 clients connected (0 slaves), 790616 bytes in use
[597] 26 Sep 18:40:29 * Connecting to MASTER...
[597] 26 Sep 18:40:29 * MASTER <-> SLAVE sync started: SYNC sent
[597] 26 Sep 18:40:29 * MASTER <-> SLAVE sync: receiving 10 bytes from master
[597] 26 Sep 18:40:29 * MASTER <-> SLAVE sync: Loading DB in memory
[597] 26 Sep 18:40:29 * MASTER <-> SLAVE sync: Finished with success
[597] 26 Sep 18:40:34 - 1 clients connected (0 slaves), 798744 bytes in use
当有另外一台从机10.20.150.209挂载时
当有另一台从机挂载至主机时,主机显示的信息如下:
[29028] 26 Sep 18:42:52 - 0 clients connected (1 slaves), 798752 bytes in use
[29028] 26 Sep 18:42:57 - 0 clients connected (1 slaves), 798752 bytes in use
[29028] 26 Sep 18:42:58 - Accepted 10.20.150.209:47650
[29028] 26 Sep 18:42:58 * Slave ask for synchronization
[29028] 26 Sep 18:42:58 * Starting BGSAVE for SYNC
[29028] 26 Sep 18:42:58 * Background saving started by pid 29287
[29287] 26 Sep 18:42:58 * DB saved on disk
[29028] 26 Sep 18:42:59 * Background saving terminated with success
[29028] 26 Sep 18:42:59 * Synchronization with slave succeeded
[29028] 26 Sep 18:43:02 - 0 clients connected (2 slaves), 806920 bytes in use
从另一台从机上可以看到的信息如下:
[Intranet root@xasc-150-209 /usr/alibaba/install/redis-2.2.12/src]
#./redis-server  ../redis.conf
[15034] 26 Sep 18:42:56 * Server started, Redis version 2.2.12
[15034] 26 Sep 18:42:56 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
[15034] 26 Sep 18:42:56 * The server is now ready to accept connections on port 6379
[15034] 26 Sep 18:42:56 - 0 clients connected (0 slaves), 790616 bytes in use
[15034] 26 Sep 18:42:56 * Connecting to MASTER...
[15034] 26 Sep 18:42:56 * MASTER <-> SLAVE sync started: SYNC sent
[15034] 26 Sep 18:42:56 * MASTER <-> SLAVE sync: receiving 10 bytes from master
[15034] 26 Sep 18:42:56 * MASTER <-> SLAVE sync: Loading DB in memory
[15034] 26 Sep 18:42:56 * MASTER <-> SLAVE sync: Finished with success
[15034] 26 Sep 18:43:01 - 1 clients connected (0 slaves), 798744 bytes in use

上一页  1 2 3 4 5 6  下一页

Tags:Redis 主从 配置

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接