redis.conf updated with new maxmemory semantics
This commit is contained in:
parent
b129c6df45
commit
cebb7b92ce
28
redis.conf
28
redis.conf
@ -201,21 +201,23 @@ slave-serve-stale-data yes
|
|||||||
# maxclients 10000
|
# maxclients 10000
|
||||||
|
|
||||||
# Don't use more memory than the specified amount of bytes.
|
# Don't use more memory than the specified amount of bytes.
|
||||||
# When the memory limit is reached Redis will try to remove keys with an
|
# When the memory limit is reached Redis will try to remove keys
|
||||||
# EXPIRE set. It will try to start freeing keys that are going to expire
|
# accordingly to the eviction policy selected (see maxmemmory-policy).
|
||||||
# in little time and preserve keys with a longer time to live.
|
|
||||||
# Redis will also try to remove objects from free lists if possible.
|
|
||||||
#
|
#
|
||||||
# If all this fails, Redis will start to reply with errors to commands
|
# If Redis can't remove keys according to the policy, or if the policy is
|
||||||
# that will use more memory, like SET, LPUSH, and so on, and will continue
|
# set to 'noeviction', Redis will start to reply with errors to commands
|
||||||
# to reply to most read-only commands like GET.
|
# that would use more memory, like SET, LPUSH, and so on, and will continue
|
||||||
|
# to reply to read-only commands like GET.
|
||||||
#
|
#
|
||||||
# WARNING: maxmemory can be a good idea mainly if you want to use Redis as a
|
# This option is usually useful when using Redis as an LRU cache, or to set
|
||||||
# 'state' server or cache, not as a real DB. When Redis is used as a real
|
# an hard memory limit for an instance (using the 'noeviction' policy).
|
||||||
# database the memory usage will grow over the weeks, it will be obvious if
|
#
|
||||||
# it is going to use too much memory in the long run, and you'll have the time
|
# WARNING: If you have slaves attached to an instance with maxmemory on,
|
||||||
# to upgrade. With maxmemory after the limit is reached you'll start to get
|
# the size of the output buffers needed to feed the slaves are subtracted
|
||||||
# errors for write operations, and this may even lead to DB inconsistency.
|
# from the used memory count, so that network problems / resyncs will
|
||||||
|
# not trigger a loop where keys are evicted, and in turn the output
|
||||||
|
# buffer of slaves is full with DELs of keys evicted triggering the deletion
|
||||||
|
# of more keys, and so forth until the database is completely emptied.
|
||||||
#
|
#
|
||||||
# maxmemory <bytes>
|
# maxmemory <bytes>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user