Hi,
I have created the below docker-compose for read-write balancing.
I’m planning to write only to the master and read only from the slave.
The question is, how do you suggest to config the RDB and AOF?
I have a lot of data, loading from AOF is a no-go.
So in a cluster, what is the best practice to config the AOF for and RDB for fast loading and high integrity.
Thanks
redis-slave.conf:
appendonly yes
slave-read-only no
slaveof redis-master 6379
redis-master.conf:
appendonly yes
slave-read-only no
docker-compose.yml
version: '3.3'
services:
redis-master:
container_name: redis-master
image: redislabs/redisgraph:edge
ports:
- "6370:6379"
volumes:
- ./conf:/usr/local/etc/redis/
command: ["redis-server", "/usr/local/etc/redis/redis-master.conf", "--loadmodule" ,"/usr/lib/redis/modules/redisgraph.so", ]
redis-slave:
container_name: redis-slave
image: redislabs/redisgraph:edge
command: ["redis-server", "/usr/local/etc/redis/redis-slave.conf", "--loadmodule" ,"/usr/lib/redis/modules/redisgraph.so"]
ports:
- "6371:6378"
volumes:
- ./conf:/usr/local/etc/redis/