DCS Redis Help Documentation

Modify Configuration Parameters

2024-05-24 08:44:00

After a DCS Redis instance is created, the instance configuration parameters can be modified on the console. Modifying the configuration parameters of a Redis instance can tune and optimize the behavior and performance of Redis to meet specific needs.

Before You Begin

This operation can only be performed when the DCS Redis instance is in the Running state.

Procedure

1. Log in to the Redis management console.

2. Select the region of the instance in the upper left corner of the management console.

3. On the instance list page, click the target instance name to go to the instance details management page.

4. In the instance node list, click the Redis cluster name to go to the Redis cluster management page.

5. Click node management to go to the node management page.

6. In the node operation column, click More->Instance Configuration to open the instance parameter configuration window. After modifying the parameters, click the save button to apply.

Note:

Modifications to the above default instance configuration will apply to instances in the entire cluster. Generally, you can set parameters to the system's default values. Modification is not recommended. If you want to know more detailed Redis parameter descriptions, see the Official Redis Documentation.

 

Parameter Description

Parameter Name

Range

Description

maxmemory

Byte Size

The maximum memory volume for Redis.(unmodifiable).

databases

1-256

Number of databases (unmodifiable).

maxmemory-polic

volatile-lru

allkeys-lru

volatile-random

allkeys-random

volatile-ttl

noeviction

Specifies how Redis handles new write operations when the maximum memory limit is reached.volatile-lru: Delete key values with expiration time set based on the LRU algorithm.allkeys-lru: Delete any key value based on the LRU algorithm.volatile-random: Delete random key values with expiration time set.allkeys-random: Delete a random key value.volatile-ttl: Delete the key value that is about to expire, namely the key value with the smallest TTL value.noeviction: Do not delete any key values, and just return a write error.

appendfsync

everysec

always

no

Used to control the persistence policy of Redis.Specifies the timing of writing data to disk to ensure data persistence. The description of each value is as follows always (default): Every time there is a write action, the data will be synchronized to the disk immediately.everysec: Synchronize data to disk once per second.no: Let the OS decide when to synchronize data to disk.

io-threads

Integer

Specifies the number of I/O threads for Redis. The default number is 4. (unmodifiable).

loglevel

debug

verbose

info

notice

warning

error

The level for details for logging.

auto-aof-rewrite-min-size

Byte Size

AOF file rewrite trigger: The AOF file size exceeds the specified size. (unmodifiable).

logfile

File path.

Log file path. (unmodifiable).

maxclients

Integer

Specifies the maximum number of client connections supported by Redis. The default value is 10000. (unmodifiable).

slowlog-log-slower-than

Integer

Specifies the time threshold for slow query logging, in microseconds (μs). The default value is 10000 (10 milliseconds).

slowlog-max-len

Integer

Specifies the maximum length of slow query logs. The default value is 128.

is-open-semi-sync

yes

no

Indicates whether to enable the Semi-Synchronous Replication function.

aof-newsave-size

Integer

Triggers rewriting of an AOF file when its current size (in bytes) exceeds the specified size.

aof-newsave-percentage

0-100

Triggers rewriting an AOF file when its current size exceeds the specified percentage of the size of the previous rewrite. For instance, setting the value to 50 means triggering a rewrite when the file size exceeds 50% of the size of the previous rewrite.


quHY7mQwrFLH