Unknown command ' Flushall ' reading the Append only file

Source: Internet
Author: User
Tags redis cluster

To disable some dangerous commands for Redis cluster, the method used is to add the following in the configuration file:

Rename-command Flushall Hufuflushall

Rename-command Flushdb Hufuflushdb

Rename-command Keys Hufukeys

This poses a problem, after rebooting outside the server, will cause the Redis service in cluster not to start, and will also be reported "Unknown command ' Flushall ' reading the Append only file". The usual practice of shutting down the persistent configuration "AppendOnly No" does not start the service. Then start the Redis instance service. However, when you connect to the Cluster service, you will be prompted to cluster unavailable when you encounter the following issues. At this point the role of REDIS-TRIB.RB is reflected in the implementation of the fix Operation Cluster service can be restored. However, the result of modifying the persistent configuration is that the Redis data cannot be returned because of a shutdown operation or an unexpected event. At this point, the redis-trib.rb add function for the problem of Redis instances to increase the slave, and then through the failover way to master and slave switch. The process is very tortuous, but who let Redis-cluster is still a semi-automatic Cluster service!

This article from "Good Life, happy work!" "Blog, be sure to keep this provenance http://yjw1983.blog.51cto.com/265702/1854600

Unknown command ' Flushall ' reading the Append only file

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.