Updated on 2024-11-29 GMT+08:00

Common Redis Parameters

Navigation path for setting parameters:

On FusionInsight Manager, choose Cluster > Name of the desired cluster > Service > Redis > Configuration, and enter the parameter name in the search box.

Table 1 Parameter Description

Configuration

Description

Default Value

appendonly

Whether to enable AOF. If AOF is enabled, a log is recorded for each write operation, which improves the data anti-risk capability but affects the efficiency.

no

maxmemory

Indicates the maximum memory (unit: MB). When the maximum memory is reached, Redis attempts to delete expired or to-be-expired keys. If the maximum memory is still reached after this method is used, no more write operations can be performed.

1024

REDIS_RDBOPEN

Indicates whether to enable RDB.

true

REDIS_SECURITY_ENABLED

Indicates whether to enable the Redis security mode. The Redis security mode has a great impact on performance. If there is no special requirement, you are advised to install the common mode. (In the normal mode, authentication and authorization are not required for accessing Redis. You are advised not to use the Redis to access important data. Otherwise, security risks may exist.) This parameter is valid only when the cluster is in security mode.

NA

aof-use-rdb-preamble

Indicates that hybrid AOF+RDB persistence is supported. After this function is enabled, an AOF persistence file containing both RDB and AOF data formats is created when the AOF rewriting operation is performed. The RDB data is located at the beginning of the file and stores the data before the instance is rewritten, the rewritten command is appended in AOF data format.

no

replica-ignore-maxmemory

If this parameter is set to yes, Redis data elimination is related only to the memory of the active instance and is not performed on the standby instance. Therefore, memory overflow may occur on the standby instance.

no

lazyfree-lazy-eviction

If this parameter is set to yes and a data elimination policy is configured, Redis deletes data asynchronously.

yes

lazyfree-lazy-expire

If this parameter is set to yes and a data expiration policy is configured, Redis deletes data whose expiration time is configured in asynchronous mode.

yes

lazyfree-lazy-server-del

If this parameter is set to yes, Redis deletes data in asynchronous mode.

yes

replica-lazy-flush

If this parameter is set to yes, Redis clears the database in asynchronous mode.

yes

cluster-replica-no-failover

If this parameter is set to yes, the active/standby switchover is disabled when the active instance is faulty.

no

activerehashing

Indicates whether to update the Redis hash table. If this parameter is set to yes, the memory release is accelerated, but the data read/write delay increases.

no

activedefrag

If this parameter is set to yes, active memory defragmentation is supported during system running.

no

no-appendfsync-on-rewrite

If this parameter is set to yes, AOF persistence is suspended during AOF rewriting to avoid I/O resource contention. Set this parameter to yes if the application system demands low latency and allows a small amount of data loss. If the application system cannot tolerate data loss, set this parameter to no.

no