All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

Modify parameters

Last updated:2020-12-02 17:22:37

Modify parameters

KCS allows you to modify certain Redis parameters in the KCS console or by calling an API operation.

Modifiable parameters

Parameter Description Default value Valid values
appendonly Specifies whether to enable AOF persistence. no yes and no
appendfsync The persistence mode. everysec everysec, no, and always
maxmemory-policy The eviction policy when the maximum memory limit is reached for a dataset. volatile-lru volatile-lru, allkeys-lru, volatile-random, allkeys-random, volatile-ttl, and noeviction
maxmemory-samples The number of samples checked by the eviction algorithm for one eviction. 3 1 to 10
hash-max-ziplist-entries The threshold for internal data structure optimization. 512 0 to 9223372036854775807
hash-max-ziplist-value The threshold for internal data structure optimization. 64 0 to 9223372036854775807
list-max-ziplist-entries The threshold for internal data structure optimization. 512 0 to 9223372036854775807
list-max-ziplist-value The threshold for internal data structure optimization. 64 0 to 9223372036854775807
set-max-intset-entries The threshold for internal data structure optimization. 512 0 to 9223372036854775807
zset-max-ziplist-entries The threshold for internal data structure optimization. 128 0 to 9223372036854775807
zset-max-ziplist-value The threshold for internal data structure optimization. 64 0 to 9223372036854775807
timeout The timeout period, in seconds. 600 0 to 864000
notify-keyspace-events The notification policy for keyspace events. Empty string Combination of the following letters: K, E, g, $, l, s, h, z, x, e, and A

The timeout parameter does not apply to cluster instances due to their special architecture.
AOF persistence is disabled by default. To enable AOF persistence, set the appendonly parameter to yes. We recommend that you use the default value everysec for the appendfsync parameter.

  • appendfsync always: writes every command to AOF immediately.
  • appendfsync everysec: writes commands to AOF once every second.
  • appendfsync no: depends on the operating system to handle the writing. The operating system decides when to write commands to AOF based on the buffer size.

Procedure

  1. Log in to the KCS console and click Instances in the left navigation pane.
  2. Find the instance for which you want to modify parameters and click the name of the instance or Manage in the Actions column. The instance details page appears.
  3. In the left navigation pane, click Parameter Configuration. The parameter configuration page appears.
  4. On the parameter configuration page, click Change to change the values of parameters, and then click Save to save the configuration. You can click Restore to Defaults to restore the default values of the parameters.
    参数配置1.png
On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback