X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/590d55a2064bdb8363145e8a4826a3cf6c6d420e..6caa0c10ef630ec583deb63d0b04cc01f8256d5d:/redis.conf diff --git a/redis.conf b/redis.conf index f5e15f69..0920fe73 100644 --- a/redis.conf +++ b/redis.conf @@ -196,6 +196,21 @@ slave-read-only yes # # repl-timeout 60 +# The slave priority is an integer number published by Redis in the INFO output. +# It is used by Redis Sentinel in order to select a slave to promote into a +# master if the master is no longer working correctly. +# +# A slave with a low priority number is considered better for promotion, so +# for instance if there are three slaves with priority 10, 100, 25 Sentinel will +# pick the one wtih priority 10, that is the lowest. +# +# However a special priority of 0 marks the slave as not able to perform the +# role of master, so a slave with priority of 0 will never be selected by +# Redis Sentinel for promotion. +# +# By default the priority is 100. +slave-priority 100 + ################################## SECURITY ################################### # Require clients to issue AUTH before processing any other @@ -296,6 +311,26 @@ slave-read-only yes # # maxmemory-samples 3 +################################# MDB ARCHIVAL ################################ + +# When keys are delete due to the memory limit, they are forever lost. In +# some situations, it is valuable to instead "archive" them by storing them +# in another database, even if that database is slower than Redis. Turning +# on keyarchive will store these keys to OpenLDAP's MDB, a very fast embedded +# key/value storage system. When keys are next used, they will be recovered +# back into Redis; further edits will not be saved back to the key archival +# system until the key is again spilled to disk. + +keyarchive no + +# The directory in which the database files will reside. +# +# mdb-environment archive + +# Set the size of the memory map to use for this environment. +# +# mdb-mapsize 10485760 + ############################## APPEND ONLY MODE ############################### # By default Redis asynchronously dumps the dataset on disk. This mode is