By gleb.ignatev
I am testing DigitalOcean Managed Redis Database and I would like to test the automatic failover feature. It is mentioned in the docs that one can initial a failover using the FAILOVER
command.
I am connecting to master with redli
, but unfortunately neither FAILOVER
nor other commands with @admin
ACL seem to be unrecognized:
> FAILOVER
(error) ERR unknown command 'FAILOVER', with args beginning with:
This behavior makes me conclude that the default
user does not have enough permissions to execute such commands.
I tried to fiddle with CLIENT PAUSE
, ACL
and even doctl database user
, but no luck. Am I missing something? What is the recommended way to simulate a failover?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
Hi there,
Testing the automatic failover feature of DigitalOcean’s Managed Redis Database requires a bit of finesse, as you’ve noticed. The default user in a managed Redis instance typically doesn’t have permissions to execute commands like FAILOVER
, which are reserved for administrative purposes. This limitation is in place for security and stability reasons.
If the primary node fails, a standby node is automatically promoted to replace it but you can not trigger this on demand.
If you need a more controlled and safe way to test failover, consider reaching out to DigitalOcean’s support team. They may provide insights or methods for testing specific to the Managed Redis service which is not available out of the box.
Hope that helps!
- Bobby.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.