Disable the Dangerous Command
Last Updated:2021-05-08
The cloud database SCS provides the feature to disable the dangerous commands. Users can modify disable_commands
parameter through the management console to disable some dangerous commands that may result in data mis-deletion and unstable services.
Notes
- The commands that can be disabled include: FLUSHALL, FLUSHDB, KEYS, HGETALL.
- FLUSHALL and FLUSHDB commands may delete large amount of or even all data.
- The irrational use of KEYS and HGETALL commands may result in blocking of Redis and full occupation of CPU.
- After modifying and disabling the dangerous command parameters, it gets valid after restarting the service.
Operating Steps
- Log in to Cloud Database SCS Management Console SCS, and click "Instance Name/ID".
- Click "Parameter Settings" in the tab navigation bar of the instance details page.
- Find
disable_commands
parameter on "Parameter Setting" > "Modifiable Parameters" page, and click "Edit" in the "Current Running Parameter Value" column.
- Select the command to be disabled in the pop-up window and click "OK".
- The modification gets valid after restarting the service. Currently, it is required to submit the ticket to restart the service.