标签:ast ilo lov 单实例 机制 str 环境 color disco
redis-server redis13000.conf redis-server redis13001.conf redis-server redis13002.conf
redis-cli -p 13000 cluster meet 127.0.0.1 12000 redis-cli -p 13000 cluster replicate e5ce695f7c5745ca81b4239fb5666b6a71fbb4ea redis-cli -p 13001 cluster meet 127.0.0.1 12001 redis-cli -p 13001 cluster replicate f63f0d52372ad8b5c414c47e9318717b6aa113cc redis-cli -p 13002 cluster meet 127.0.0.1 12002 redis-cli -p 13002 cluster replicate fdeb68f696290a91f08a5da3b8a3c585aaa35856
redis-cli -p 13002 cluster slots 1) 1) (integer) 5001 2) (integer) 10000 3) 1) "127.0.0.1" 2) (integer) 12001 4) 1) "127.0.0.1" 2) (integer) 13001 2) 1) (integer) 10001 2) (integer) 16383 3) 1) "127.0.0.1" 2) (integer) 12002 4) 1) "127.0.0.1" 2) (integer) 13002 3) 1) (integer) 0 2) (integer) 5000 3) 1) "127.0.0.1" 2) (integer) 12000 4) 1) "127.0.0.1" 2) (integer) 13000
redis-cli -p 12000 shutdown redis-cli -p 13000 cluster nodes fdeb68f696290a91f08a5da3b8a3c585aaa35856 127.0.0.1:12002 master - 0 1463042318423 0 connected 10001-16383 f63f0d52372ad8b5c414c47e9318717b6aa113cc 127.0.0.1:12001 master - 0 1463042319426 2 connected 5001-10000 e39a73c30dfff3139242e66f8e0a41178b39e280 127.0.0.1:13000 myself,master - 0 0 6 connected 0-5000 1f552bdea453caeaa64b4b33a05e4eedeb3f3dd2 127.0.0.1:13001 slave f63f0d52372ad8b5c414c47e9318717b6aa113cc 0 1463042317421 4 connected 6a70a82c6f07dc4e61a97b6aee7a2994365642cc 127.0.0.1:13002 slave fdeb68f696290a91f08a5da3b8a3c585aaa35856 0 1463042320429 5 connected e5ce695f7c5745ca81b4239fb5666b6a71fbb4ea 127.0.0.1:12000 master,fail - 1463042217663 1463042214056 1 disconnected
redis-cli -p 13000 cluster forget e5ce695f7c5745ca81b4239fb5666b6a71fbb4ea redis-cli -p 13001 cluster forget e5ce695f7c5745ca81b4239fb5666b6a71fbb4ea redis-cli -p 13002 cluster forget e5ce695f7c5745ca81b4239fb5666b6a71fbb4ea redis-cli -p 13000 cluster nodes fdeb68f696290a91f08a5da3b8a3c585aaa35856 127.0.0.1:12002 master - 0 1463043284365 0 connected 10001-16383 f63f0d52372ad8b5c414c47e9318717b6aa113cc 127.0.0.1:12001 master - 0 1463043283364 2 connected 5001-10000 e39a73c30dfff3139242e66f8e0a41178b39e280 127.0.0.1:13000 myself,master - 0 0 6 connected 0-5000 1f552bdea453caeaa64b4b33a05e4eedeb3f3dd2 127.0.0.1:13001 slave f63f0d52372ad8b5c414c47e9318717b6aa113cc 0 1463043286369 4 connected 6a70a82c6f07dc4e61a97b6aee7a2994365642cc 127.0.0.1:13002 slave fdeb68f696290a91f08a5da3b8a3c585aaa35856 0 1463043285368 5 connected redis-cli -p 13000 cluster nodes e39a73c30dfff3139242e66f8e0a41178b39e280 127.0.0.1:13000 myself,master - 0 0 6 connected 0-5000 1f552bdea453caeaa64b4b33a05e4eedeb3f3dd2 127.0.0.1:13001 slave - 0 1463043457854 4 connected 6a70a82c6f07dc4e61a97b6aee7a2994365642cc 127.0.0.1:13002 slave - 0 1463043458857 5 connected
redis集群同步迁移方法(一):通过redis replication实现
标签:ast ilo lov 单实例 机制 str 环境 color disco
原文地址:http://www.cnblogs.com/datazhang/p/6004902.html