百度智能云

All Product Document

          Simple Cache Service SCS

          Disable the Dangerous Command

          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

          1. Log in to Cloud Database SCS Management Console SCS, and click "Instance Name/ID".
          2. Click "Parameter Settings" in the tab navigation bar of the instance details page.
          3. Find disable_commands parameter on "Parameter Setting" > "Modifiable Parameters" page, and click "Edit" in the "Current Running Parameter Value" column.

          image.png

          1. Select the command to be disabled in the pop-up window and click "OK".

          image.png

          1. The modification gets valid after restarting the service. Currently, it is required to submit the ticket to restart the service.
          Previous
          Modify the Parameters
          Next
          AOF Persistence Switch