New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Rename will cause sentinel switching to fail #10328
Comments
Are you sure that the failover was caused by changing the name? The error log you sent is because of multiple failovers within 6 minutes. If you want to know why the failover failed, you have to look at the previous log. And the log you sent is not complete. The complete log will write the time when the next failover can be performed at the end. |
I'm guessing you also have an error of "Unknown command 'flushall' reading the append only file" in your log file, because the AOF doesn't support "flushall". You can try shutting down AOF and restarting the cluster. This is turned off by changing "appendonly" to "no" in the configuration file. You better know what it means to turn off AOF before you turn it off. |
I don't enabled AOF and RDB ,I have updated the question,RENAME CONFIG ,not RENAME FLUSHALL or RENAME FLUSHDB |
@tanglu86 Hi in order to help solve your issue, could you please provide the following detail to us, then we could try to reproduce it and check why your sentinel can not failover, Thanks
Thanks, and looking forward to your feedback. |
|
Hi @tanglu86 , I used the following configs: bind 127.0.0.1 replica1.conf bind 127.0.0.1 rename-command FLUSHALL ADMINFLUSHALL replica2.conf bind 127.0.0.1 rename-command FLUSHALL ADMINFLUSHALL sentinel1.conf port 5000 sentinel2.conf port 5001 sentinel3.conf port 5002 |
When the primary node fails, sentinel switching will fail, and the log outputs "next failover delay: I will not start a failover before"
How do I fix this problem?
My redis conf :
rename-command FLUSHALL ADMINFLUSHALL
rename-command FLUSHDB ADMINFLUSHDB#
rename-command CONFIG ADMINCONFIG
rename-command KEYS ADMINKEYS
The text was updated successfully, but these errors were encountered: