Skip to main content
Version: 25.01.01

Allowed configurations

Below are the allowed configuration parameters for the Redis Cluster data service, including their corresponding server configuration names, environment variables, and default values in PDS.

Server configuration

Environment variable

PDS Default value

acllog-max-len

ACLLOG_MAX_LEN

128

activerehashing

ACTIVEREHASHING

yes

aof-load-truncated

AOF_LOAD_TRUNCATED

yes

aof-rewrite-incremental-fsync

AOF_REWRITE_INCREMENTAL_FSYNC

yes

aof-timestamp-enabled

AOF_TIMESTAMP_ENABLED

no

aof-use-rdb-preamble

AOF_USE_RDB_PREAMBLE

yes

appendfsync

APPENDFSYNC

everysec

appendonly

APPENDONLY

no

auto-aof-rewrite-min-size

AUTO_AOF_REWRITE_MIN_SIZE

64mb

auto-aof-rewrite-percentage

AUTO_AOF_REWRITE_PERCENTAGE

100

client-output-buffer-limit

CLIENT_OUTPUT_BUFFER_LIMIT_NORMAL

"normal 0 0 0"

client-output-buffer-limit

CLIENT_OUTPUT_BUFFER_LIMIT_PUBSUB

"slave 256mb 64mb 60"

client-output-buffer-limit

CLIENT_OUTPUT_BUFFER_LIMIT_REPLICA

"pubsub 32mb 8mb 60"

cluster-allow-pubsubshard-when-down

CLUSTER_ALLOW_PUBSUBSHARD_WHEN_DOWN

yes

cluster-allow-reads-when-down

CLUSTER_ALLOW_READS_WHEN_DOWN

no

cluster-link-sendbuf-limit

CLUSTER_LINK_SENDBUF_LIMIT

0

cluster-node-timeout

CLUSTER_NODE_TIMEOUT

15000

cluster-replica-no-failover

CLUSTER_REPLICA_NO_FAILOVER

no

cluster-replica-validity-factor

CLUSTER_REPLICA_VALIDITY_FACTOR

10

cluster-require-full-coverage

CLUSTER_REQUIRE_FULL_COVERAGE

yes

databases

DATABASES

16

dynamic-hz

DYNAMIC_HZ

yes

hash-max-listpack-entries

HASH_MAX_ZIPLIST_ENTRIES

512

hash-max-listpack-value

HASH_MAX_ZIPLIST_VALUE

64

hll-sparse-max-bytes

HLL_SPARSE_MAX_BYTES

3000

hz

HZ

10

jemalloc-bg-thread

JEMALLOC_BG_THREAD

yes

latency-monitor-threshold

LATENCY_MONITOR_THRESHOLD

0

lazyfree-lazy-eviction

LAZYFREE_LAZY_EVICTION

no

lazyfree-lazy-expire

LAZYFREE_LAZY_EXPIRE

no

lazyfree-lazy-server-del

LAZYFREE_LAZY_SERVER_DEL

no

lazyfree-lazy-user-del

LAZYFREE_LAZY_USER_DEL

no

lazyfree-lazy-user-flush

LAZYFREE_LAZY_USER_FLUSH

no

list-compress-depth

LIST_COMPRESS_DEPTH

0

list-max-listpack-size

LIST_MAX_ZIPLIST_SIZE

2

loglevel

LOGLEVEL

notice

lua-time-limit

LUA_TIME_LIMIT

5000

min-replicas-max-lag

MIN_REPLICAS_MAX_LAG

10

min-replicas-to-write

MIN_REPLICAS_TO_WRITE

0

no-appendfsync-on-rewrite

NO_APPENDFSYNC_ON_REWRITE

no

notify-keyspace-events

NOTIFY_KEYSPACE_EVENTS

protected-mode

PROTECTED_MODE

yes

rdbchecksum

RDBCHECKSUM

yes

rdbcompression

RDBCOMPRESSION

yes

rdb-save-incremental-fsync

RDB_SAVE_INCREMENTAL_FSYNC

yes

repl-disable-tcp-nodelay

REPL_DISABLE_TCP_NODELAY

no

replica-lazy-flush

REPLICA_LAZY_FLUSH

no

replica-priority

REPLICA_PRIORITY

100

replica-read-only

REPLICA_READ_ONLY

yes

replica-serve-stale-data

REPLICA_SERVE_STALE_DATA

yes

save

SAVE_1

"900 1"

save

SAVE_10

"300 10"

save

SAVE_10000

"60 10000"

set-max-intset-entries

SET_MAX_INTSET_ENTRIES

512

slowlog-log-slower-than

SLOWLOG_LOG_SLOWER_THAN

10000

slowlog-max-len

SLOWLOG_MAX_LEN

128

stop-writes-on-bgsave-error

STOP_WRITES_ON_BGSAVE_ERROR

yes

stream-node-max-bytes

STREAM_NODE_MAX_BYTES

4096

stream-node-max-entries

STREAM_NODE_MAX_ENTRIES

100

tcp-keepalive

TCP_KEEPALIVE

300

zset-max-listpack-entries

ZSET_MAX_ZIPLIST_ENTRIES

128

zset-max-listpack-value

ZSET_MAX_ZIPLIST_VALUE

64