1 master and 2 replicas
- Set security: masterauth and requirepass
- Set persistence: RDB and AOF
- dbfilename “dump.rdb”
- appendonly yes
- appendfilename “appendonly.aof”
- dir “/data”
change :
replicaof 172.23.0.4 6379
to:
slaveof redis-0 6379
change :
replicaof 172.23.0.4 6379
to:
slaveof redis-0 6379