1. How to setup Fault Tolerant Redis (3.0.501 64 bit Windows) Cluster ?
(Redis cluster is fault tolerant only when there is no huge data)
Steps performed for each scenario is given below.
Less Data Scenario:
(Refer to images from LessDataScenario.zip for Less Data Scenario)
1. A cluster is formed with Redis running on 7000, 7001 and 7002 ports as master of 7003, 7004 and 7005 respectively. (ref to 1-InitialClusterSetup.png).
2. Redis 7000 is stopped. (ref to 2-7000Stopped.png)
3. On Stopping Redis 7000, Redis running on 7003 has become master. Cluster state is ok. (ref to 3-7003BecameMaster.png)
4. Cluster check on 7002 showed all slots covered. (ref to 4-ClusterCheck.png)
5. Now, have started 7000 Redis. It has become slave of 7003 Redis. (ref to 5-7000Started.png)
6. Cluster check on both 7002 and 7003 showed [OK] all slots covered. It showed all six nodes (3 masters and 3 slaves) during this check. (ref to 6-ClusterCheck.png)
7. Stopped 7003 Redis which is the master now. (ref to 7-7003Stopped.png)
8. On stopping 7003, 7000 Redis has become master. Cluster state is ok. (ref to 8-7001BecameMaster.png)
9. Cluster check on both 7001 and 7002 showed [OK] all slots covered. (ref to 9-ClusterCheck.png)
10. Now started 7003 again. It has become slave of 7000. (ref to 10-7003Started.png)
11. Cluster check on both 7001 and 7002 showed [OK] all slots covered. It showed all six nodes (3 masters and 3 slaves) during this check. (ref to 11-ClusterCheck.png)
With Huge Data Scenario:
(Refer to images from OneLakhDataScenario.zip for Huge Data Scenario)
1. A cluster is formed with Redis running on 7000, 7001 and 7002 ports as master of 7003, 7004 and 7005 respectively. (ref to 1-InitialClusterSetup.png)
2. Added one lakh keys to the cluster. (ref to 2-OneLakhRecordsAdded.png)
3. Added one more key (ref to 3-Key17000Added.png)
4. Redis 7000 is stopped. (ref to 4-7000Stopped.png)
5. On Stopping Redis 7000, Redis running on 7003 has become master. Cluster state is ok. (ref to 5-7003BecameMaster.png)
6. Cluster check on both 7002 and 7003 showed [OK] all slots covered. (ref to 6-ClusterCheck.png)
7. On 7003, updated the key added in step 3. (ref to 7-Key17000UpdatedIn7003.png)
8. Started 7000 Redis. Became slave of Redis 7003. (ref to 8-7000Started.png)
9. When cluster check is done on 7002 and 7003, neither of them showed the node 7000 as slave of 7003. (ref to 9-ClusterCheck.png)
10. Stopped 7003 Redis which is master now. (ref to 10-7003Stopped.png)
11. 7000 Redis did not become master even though 7003 is stopped. (ref to 11-7000DidnotBecomeMaster.png)
12. Cluster check on 7002 and 7001 did not show 7000 node in it. Cluster status showed [ERR] i.e., not all 16384 slots are covered. (ref to 12-ClusterCheckFail.png)
13. Started 7003 again just to check the cluster status. (ref to 13-7003StartedAgain.png)
14. Cluster check on 7001 and 7002 showed ERR i.e. Not all slots are covered whereas cluster check on 7003 is showing [OK] i.e. All slots are covered. (ref to 14-ClusterCheckAfter7003StartedAgain.png)
Cluster configuration used for Redis7000 is given below.
port 7000
cluster-enabled yes
cluster-config-file nodes-7000.conf
cluster-slave-validity-factor 0
cluster-node-timeout 10000
#repl-ping-slave-period 1
appendonly yes
appendfilename appendonly-7000.aof
dbfilename dump-7000.rdb
#logfile 7000.log
logfile ""
maxmemory 3GB
lua-time-limit 5000
--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/gA0DCigjnXo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.