Ticket #19970: redis-daemon.conf.sample.in.diff

File redis-daemon.conf.sample.in.diff, 3.5 KB (added by brianjlandau@…, 15 years ago)

Patch file for daemon config file

  • files/redis-daemon.conf.sample.in

    old new  
    1616#
    1717# bind 127.0.0.1
    1818
    19 # Close the connection after a client is idle for N seconds
     19# Close the connection after a client is idle for N seconds (0 to disable)
    2020timeout 300
    2121
    2222# Save the DB on disk:
     
    3434save 300 10
    3535save 60 10000
    3636
     37# The filename where to dump the DB
     38dbfilename dump.rdb
     39
    3740# For default save/load DB in/from the working directory
    3841# Note that you must specify a directory not a file name.
    3942dir @PREFIX@/var/db/redis
     
    5053# output for logging but daemonize, logs will be sent to /dev/null
    5154logfile @PREFIX@/var/log/redis.log
    5255
    53 # Set the number of databases.
     56# Set the number of databases. The default database is DB 0, you can select
     57# a different one on a per-connection basis using SELECT <dbid> where
     58# dbid is a number between 0 and 'databases'-1
    5459databases 16
    5560
    5661################################# REPLICATION #################################
     
    7378
    7479# requirepass foobared
    7580
     81################################### LIMITS ####################################
     82
     83# Set the max number of connected clients at the same time. By default there
     84# is no limit, and it's up to the number of file descriptors the Redis process
     85# is able to open. The special value '0' means no limts.
     86# Once the limit is reached Redis will close all the new connections sending
     87# an error 'max number of clients reached'.
     88
     89# maxclients 128
     90
     91# Don't use more memory than the specified amount of bytes.
     92# When the memory limit is reached Redis will try to remove keys with an
     93# EXPIRE set. It will try to start freeing keys that are going to expire
     94# in little time and preserve keys with a longer time to live.
     95# Redis will also try to remove objects from free lists if possible.
     96#
     97# If all this fails, Redis will start to reply with errors to commands
     98# that will use more memory, like SET, LPUSH, and so on, and will continue
     99# to reply to most read-only commands like GET.
     100#
     101# WARNING: maxmemory can be a good idea mainly if you want to use Redis as a
     102# 'state' server or cache, not as a real DB. When Redis is used as a real
     103# database the memory usage will grow over the weeks, it will be obvious if
     104# it is going to use too much memory in the long run, and you'll have the time
     105# to upgrade. With maxmemory after the limit is reached you'll start to get
     106# errors for write operations, and this may even lead to DB inconsistency.
     107
     108# maxmemory <bytes>
     109
    76110############################### ADVANCED CONFIG ###############################
    77111
    78112# Glue small output buffers together in order to send small replies in a
     
    84118# string in your dataset, but performs lookups against the shared objects
    85119# pool so it uses more CPU and can be a bit slower. Usually it's a good
    86120# idea.
     121#
     122# When object sharing is enabled (shareobjects yes) you can use
     123# shareobjectspoolsize to control the size of the pool used in order to try
     124# object sharing. A bigger pool size will lead to better sharing capabilities.
     125# In general you want this value to be at least the double of the number of
     126# very common strings you have in your dataset.
     127#
     128# WARNING: object sharing is experimental, don't enable this feature
     129# in production before of Redis 1.0-stable. Still please try this feature in
     130# your development environment so that we can test it better.
    87131shareobjects no
     132# shareobjectspoolsize 1024