DCS Redis Help Documentation

Command Restrictions

2024-05-23 11:13:41

Large Data Volume Commands

If the data volume of the DCS instance is relatively large, Redis resources can be occupied for a long time during the execution of commands with large data volume, leaving other client requests without a response. For example, KEYS and other commands.

Server Commands

For Redis 2.8, 4.0 and 5.0, in order to protect the smooth operation of Redis, the following commands are forbidden: save, bgsave, bgrewriteaof, sync and psync.

LUA Commands

The execution timeout of Lua scripts is 5 seconds. Do not use time-consuming codes and commands in the scripts, such as long sleep, large loop, etc.

Note:

When calling a Lua script, you are recommended not to use a random function to specify the key, or the execution results on the active/standby nodes will be inconsistent, resulting in data inconsistency on the active/standby nodes.

Other Restrictions

A single Redis command should not take too long to execute. Redis itself can only be processed in a single thread, which can cause the system to be unable to process other client requests in time. If the execution time is longer than 10 seconds, an internal active/standby switch could be triggered, causing other client requests to fail.


GnZEpqwOxvAp