mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
Document slave-ignore-maxmemory in redis.conf.
This commit is contained in:
parent
e245a2046a
commit
5941022b52
20
redis.conf
20
redis.conf
@ -602,6 +602,26 @@ slave-priority 100
|
|||||||
#
|
#
|
||||||
# maxmemory-samples 5
|
# maxmemory-samples 5
|
||||||
|
|
||||||
|
# Starting from Redis 5, by default a slave will ignore its maxmemory setting
|
||||||
|
# (unless it is promoted to master after a failover or manually). It means
|
||||||
|
# that the eviction of keys will be just handled by the master, sending the
|
||||||
|
# DEL commands to the slave as keys evict in the master side.
|
||||||
|
#
|
||||||
|
# This behavior ensures that masters and slaves stay consistent, and is usually
|
||||||
|
# what you want, however if your slave is writable, or you want the slave to have
|
||||||
|
# a different memory setting, and you are sure all the writes performed to the
|
||||||
|
# slave are idempotent, then you may change this default (but be sure to understand
|
||||||
|
# what you are doing).
|
||||||
|
#
|
||||||
|
# Note that since the slave by default does not evict, it may end using more
|
||||||
|
# memory than the one set via maxmemory (there are certain buffers that may
|
||||||
|
# be larger on the slave, or data structures may sometimes take more memory and so
|
||||||
|
# forth). So make sure you monitor your slaves and make sure they have enough
|
||||||
|
# memory to never hit a real out-of-memory condition before the master hits
|
||||||
|
# the configured maxmemory setting.
|
||||||
|
#
|
||||||
|
# slave-ingore-maxmemory yes
|
||||||
|
|
||||||
############################# LAZY FREEING ####################################
|
############################# LAZY FREEING ####################################
|
||||||
|
|
||||||
# Redis has two primitives to delete keys. One is called DEL and is a blocking
|
# Redis has two primitives to delete keys. One is called DEL and is a blocking
|
||||||
|
Loading…
x
Reference in New Issue
Block a user