简体   繁体   中英

How to disable redis replication in cluster

I have my Redis cluster set up successfully.

However, it seems like one or more of my slaves are always syncing from their respective master. I am always getting "LOADING Redis is loading the dataset in memory" although all the masters have finished initializing from Disk.

The cluster becomes un-usable because it's always throwing me "LOADING Redis is loading the dataset in memory".

My use case is that I will never do any writes to my Redis cluster after server restart, so there's no need to replicate to the slaves.

Any information would be greatly appreciated.

Thanks.

When a node gets stuck on LOADING Redis is loading the dataset in memory after a restart, most likely the AOF file is corrupted.

Run redis-check-aof --fix <file.aof> to fix the AOF file, then restart the redis node.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM