To create Automated Set up of a poor man cluster with redis docker containers
- Create a Jenkins pipeline job with Provided Jenkinsfile. This job can be integrated with Other jenkins jobs in CICD manner to provision Redis cluster.
It is currently configured to start 6 redis containers -( 3 Master and 3 Slaves). Latest redis image is used, without redis-sentinel. sentinel can be used for master-slave leader election and quorum.
docker-compose up --build -d
$ docker exec -it {NAME}-redis-cluster_redis-1_1 redis-cli -c -p 7001
10.1.0.11:7002> cluster nodes
docker-compose down
publisher and subscriber are written in "publisher.js" and "subscriber.js" respectively.