1*572c4311SfengbojiangCreate-custer is a small script used to easily start a big number of Redis
2*572c4311Sfengbojianginstances configured to run in cluster mode. Its main goal is to allow manual
3*572c4311Sfengbojiangtesting in a condition which is not easy to replicate with the Redis cluster
4*572c4311Sfengbojiangunit tests, for example when a lot of instances are needed in order to trigger
5*572c4311Sfengbojianga given bug.
6*572c4311Sfengbojiang
7*572c4311SfengbojiangThe tool can also be used just to easily create a number of instances in a
8*572c4311SfengbojiangRedis Cluster in order to experiment a bit with the system.
9*572c4311Sfengbojiang
10*572c4311SfengbojiangUSAGE
11*572c4311Sfengbojiang---
12*572c4311Sfengbojiang
13*572c4311SfengbojiangTo create a cluster, follow these steps:
14*572c4311Sfengbojiang
15*572c4311Sfengbojiang1. Edit create-cluster and change the start / end port, depending on the
16*572c4311Sfengbojiangnumber of instances you want to create.
17*572c4311Sfengbojiang2. Use "./create-cluster start" in order to run the instances.
18*572c4311Sfengbojiang3. Use "./create-cluster create" in order to execute redis-cli --cluster create, so that
19*572c4311Sfengbojiangan actual Redis cluster will be created.
20*572c4311Sfengbojiang4. Now you are ready to play with the cluster. AOF files and logs for each instances are created in the current directory.
21*572c4311Sfengbojiang
22*572c4311SfengbojiangIn order to stop a cluster:
23*572c4311Sfengbojiang
24*572c4311Sfengbojiang1. Use "./create-cluster stop" to stop all the instances. After you stopped the instances you can use "./create-cluster start" to restart them if you change your mind.
25*572c4311Sfengbojiang2. Use "./create-cluster clean" to remove all the AOF / log files to restart with a clean environment.
26*572c4311Sfengbojiang
27*572c4311SfengbojiangUse the command "./create-cluster help" to get the full list of features.
28