Commit 662f25e8 authored by antirez's avatar antirez
Browse files

redis.conf updated with new maxmemory semantics

parent f27d3886
...@@ -192,21 +192,23 @@ slave-serve-stale-data yes ...@@ -192,21 +192,23 @@ slave-serve-stale-data yes
# maxclients 128 # maxclients 128
# 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 Redis can't remove keys according to the policy, or if the policy is
# # set to 'noeviction', Redis will start to reply with errors to commands
# If all this fails, Redis will start to reply with errors to commands # that would use more memory, like SET, LPUSH, and so on, and will continue
# that will use more memory, like SET, LPUSH, and so on, and will continue # to reply to read-only commands like GET.
# to reply to most read-only commands like GET. #
# # This option is usually useful when using Redis as an LRU cache, or to set
# WARNING: maxmemory can be a good idea mainly if you want to use Redis as a # an hard memory limit for an instance (using the 'noeviction' policy).
# 'state' server or cache, not as a real DB. When Redis is used as a real #
# database the memory usage will grow over the weeks, it will be obvious if # WARNING: If you have slaves attached to an instance with maxmemory on,
# it is going to use too much memory in the long run, and you'll have the time # the size of the output buffers needed to feed the slaves are subtracted
# to upgrade. With maxmemory after the limit is reached you'll start to get # from the used memory count, so that network problems / resyncs will
# errors for write operations, and this may even lead to DB inconsistency. # 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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment