Redis Supported Parameters
Last Updated:2020-07-20
The cloud database SCS provides the feature for customizing some instance parameters. This document introduces the custom parameters supported by Redis instances and gives their descriptions.
Parameter Description
Parameter Name | Detailed Information | Description | Applicable Version |
---|---|---|---|
appendonly | Default value: yes Type: string Set value: [yes|no|partial] |
Enable AFO persistence or not | Exclude a single replica |
disable_commands | Default value: flushall,flushdb Type: String Set value: [flushall|flushdb|keys|hgetall] When the modification gets validated: After being restarted |
The user customizes the disable commands | All |
maxmemory-policy | Default value: volatile-ttl Type: String Set value: [volatile-lru|allkeys-lru|volatile-random|allkeys-random|volatile-ttl|noenviction] |
Key replacement policy adopted when the memory overcommitment occurs.Optional: volatile-lru: Select and replace only the data that is least used in recent period in the data set with an expiration time configured allkeys-lru:select and replace the data that is least used in recent period volatile-random: only arbitrarily select and replace the data in a data set with an expiration time configured allkeys-random: arbitrarily select and replace data volatile-ttl:select and replace only the data that is about to expire in the data set with an expiration time configured noenviction:do not replace any data. |
All |
hash-max-ziplist-entries | Default value: 512 Type: Integer Set value: [0-999999999999999] |
When a hash object meets the following two conditions, the hash object is encoded with ziplist: 1. The number of key-value pairs saved by the hash object is less than or equal to the hash-max-ziplist-entries parameter value 2. The key and value string length of all key-value pairs saved by the hash object is less than or equal to the hash-max-ziplist-value parameter value |
All |
hash-max-ziplist-value | Default value: 64 Type: Integer Set value: [0-999999999999999] |
When a hash object meets the following two conditions, the hash object is encoded with ziplist: 1. The number of key-value pairs saved by the hash object is less than or equal to the hash-max-ziplist-entries parameter value 2. The key and value string length of all key-value pairs saved by the hash object is less than or equal to the hash-max-ziplist-value parameter value |
All |
set-max-intset-entries | Default value:512 Type: Integer Set value: [0-999999999999999] |
When a set object meets the following two conditions, the set object is encoded with intset: 1. The number of elements in the set object is less than or equal to the set-max-intset-entries parameter value All elements in the set object are 64-bit signed decimal integer. |
All |
zset-max-ziplist-entries | Default value:128 Type: Integer Set value: [0-999999999999999] |
When a zset object meets the following two conditions, the zset object is with ziplist: The number of key-value pairs saved by the zset object is less than or equal to the zset-max-ziplist-entries parameter value 2. The key and value string length of all key-value pairs saved by the zset object is less than or equal to the zset-max-ziplist-value parameter values |
All |
zset-max-ziplist-value | Default value:64 Type: Integer Set value: [0-999999999999999] |
When a zset object meets the following two conditions, the zset object is with ziplist: 1. The number of key-value pairs saved by the zset object is less than or equal to the zset-max-ziplist-entries parameter value he key and value string length of all key-value pairs saved by the zset object is less than or equal to the zset-max-ziplist-value parameter values. |
All |
notify-keyspace-events | Default value:Null Type: String Set value: [K|E|g|$|l|s|h|z|x|e|A] |
The client can use the key space to receive the event notification that affects Redis data set and, notify-keyspace-events parameter specifies the type of notification to be received. The parameter value consists of multiple characters, and a null value indicates that the notification is disabled. The meanings of individual characters are as follows: K:Key space event E:Key event g: General command (non-specific type), such as DEL, EXPIRE, RENAME, etc. $: String command l:List command s:Set command h:Hash command z:Ordered set command x: Key expiration event e:Key replacement event A:Alias of Parameter g $ lshzxe; therefore, "AKE" string means all events |
Standard Version |
timeout | Default value:0 Type: Integer Set value: [0-100000] |
Set the frequency of Redis background tasks, e.g., clear expired key tasks. The larger the parameter value is, the greater the CPU consumption and the smaller the delay is. It is recommended that it should not exceed 100 | All |
hz | Default value:10 Type: Integer Set value: [1-500] |
Set the frequency of Redis background tasks, e.g., clear expired key tasks. The larger the parameter value is, the greater the CPU consumption and the smaller the delay is. It is recommended that it should not exceed 100 | All |