Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f95b3936
Commit
f95b3936
authored
Feb 04, 2013
by
Salvatore Sanfilippo
Browse files
Merge pull request #928 from davidcelis/unstable
Fix a few typos and improve grammar of redis.conf
parents
74f4f298
81144645
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.conf
View file @
f95b3936
...
@@ -39,8 +39,8 @@ port 6379
...
@@ -39,8 +39,8 @@ port 6379
# Close the connection after a client is idle for N seconds (0 to disable)
# Close the connection after a client is idle for N seconds (0 to disable)
timeout
0
timeout
0
# Se
t
server verbosity
to 'debug'
# S
pecify th
e server verbosity
level.
#
it
can be one of:
#
This
can be one of:
# debug (a lot of information, useful for development/testing)
# debug (a lot of information, useful for development/testing)
# verbose (many rarely useful info, but not a mess like the debug level)
# verbose (many rarely useful info, but not a mess like the debug level)
# notice (moderately verbose, what you want in production probably)
# notice (moderately verbose, what you want in production probably)
...
@@ -59,7 +59,7 @@ logfile stdout
...
@@ -59,7 +59,7 @@ logfile stdout
# Specify the syslog identity.
# Specify the syslog identity.
# syslog-ident redis
# syslog-ident redis
# Specify the syslog facility.
Must be USER or between LOCAL0-LOCAL7.
# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7.
# syslog-facility local0
# syslog-facility local0
# Set the number of databases. The default database is DB 0, you can select
# Set the number of databases. The default database is DB 0, you can select
...
@@ -114,7 +114,7 @@ stop-writes-on-bgsave-error yes
...
@@ -114,7 +114,7 @@ stop-writes-on-bgsave-error yes
# the dataset will likely be bigger if you have compressible values or keys.
# the dataset will likely be bigger if you have compressible values or keys.
rdbcompression
yes
rdbcompression
yes
# Since ver
i
son 5 of RDB a CRC64 checksum is placed at the end of the file.
# Since vers
i
on 5 of RDB a CRC64 checksum is placed at the end of the file.
# This makes the format more resistant to corruption but there is a performance
# This makes the format more resistant to corruption but there is a performance
# hit to pay (around 10%) when saving and loading RDB files, so you can disable it
# hit to pay (around 10%) when saving and loading RDB files, so you can disable it
# for maximum performances.
# for maximum performances.
...
@@ -131,7 +131,7 @@ dbfilename dump.rdb
...
@@ -131,7 +131,7 @@ dbfilename dump.rdb
# The DB will be written inside this directory, with the filename specified
# The DB will be written inside this directory, with the filename specified
# above using the 'dbfilename' configuration directive.
# above using the 'dbfilename' configuration directive.
#
#
#
Also t
he Append Only File will be created inside this directory.
#
T
he Append Only File will
also
be created inside this directory.
#
#
# Note that you must specify a directory here, not a file name.
# Note that you must specify a directory here, not a file name.
dir
./
dir
./
...
@@ -152,7 +152,7 @@ dir ./
...
@@ -152,7 +152,7 @@ dir ./
#
#
# masterauth <master-password>
# masterauth <master-password>
# When a slave los
t the
connection with the master, or when the replication
# When a slave los
es its
connection with the master, or when the replication
# is still in progress, the slave can act in two different ways:
# is still in progress, the slave can act in two different ways:
#
#
# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will
...
@@ -230,14 +230,14 @@ slave-priority 100
...
@@ -230,14 +230,14 @@ slave-priority 100
#
#
# It is possible to change the name of dangerous commands in a shared
# It is possible to change the name of dangerous commands in a shared
# environment. For instance the CONFIG command may be renamed into something
# environment. For instance the CONFIG command may be renamed into something
#
of
hard to guess so that it will
be
still available for internal-use
# hard to guess so that it will still
be
available for internal-use
tools
#
tools
but not available for general clients.
# but not available for general clients.
#
#
# Example:
# Example:
#
#
# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52
# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52
#
#
# It is also possible to completely kill a command renaming it into
# It is also possible to completely kill a command
by
renaming it into
# an empty string:
# an empty string:
#
#
# rename-command CONFIG ""
# rename-command CONFIG ""
...
@@ -281,7 +281,7 @@ slave-priority 100
...
@@ -281,7 +281,7 @@ slave-priority 100
# maxmemory <bytes>
# maxmemory <bytes>
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory
# is reached
?
You can select among five behavior:
# is reached
.
You can select among five behavior
s
:
#
#
# volatile-lru -> remove the key with an expire set using an LRU algorithm
# volatile-lru -> remove the key with an expire set using an LRU algorithm
# allkeys-lru -> remove any key accordingly to the LRU algorithm
# allkeys-lru -> remove any key accordingly to the LRU algorithm
...
@@ -290,7 +290,7 @@ slave-priority 100
...
@@ -290,7 +290,7 @@ slave-priority 100
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
# volatile-ttl -> remove the key with the nearest expire time (minor TTL)
# noeviction -> don't expire at all, just return an error on write operations
# noeviction -> don't expire at all, just return an error on write operations
#
#
# Note: with a
ll the kind of
policies, Redis will return an error on write
# Note: with a
ny of the above
policies, Redis will return an error on write
# operations, when there are not suitable keys for eviction.
# operations, when there are not suitable keys for eviction.
#
#
# At the date of writing this commands are: set setnx setex append
# At the date of writing this commands are: set setnx setex append
...
@@ -346,7 +346,7 @@ appendonly no
...
@@ -346,7 +346,7 @@ appendonly no
# always: fsync after every write to the append only log . Slow, Safest.
# always: fsync after every write to the append only log . Slow, Safest.
# everysec: fsync only one time every second. Compromise.
# everysec: fsync only one time every second. Compromise.
#
#
# The default is "everysec" that's usually the right compromise between
# The default is "everysec"
, as
that's usually the right compromise between
# speed and data safety. It's up to you to understand if you can relax this to
# speed and data safety. It's up to you to understand if you can relax this to
# "no" that will let the operating system flush the output buffer when
# "no" that will let the operating system flush the output buffer when
# it wants, for better performances (but if you can live with the idea of
# it wants, for better performances (but if you can live with the idea of
...
@@ -374,9 +374,9 @@ appendfsync everysec
...
@@ -374,9 +374,9 @@ appendfsync everysec
# that will prevent fsync() from being called in the main process while a
# that will prevent fsync() from being called in the main process while a
# BGSAVE or BGREWRITEAOF is in progress.
# BGSAVE or BGREWRITEAOF is in progress.
#
#
# This means that while another child is saving the durability of Redis is
# This means that while another child is saving
,
the durability of Redis is
# the same as "appendfsync none"
, that i
n practical terms means that it is
# the same as "appendfsync none"
. I
n practical terms
, this
means that it is
# possible to los
t
up to 30 seconds of log in the worst scenario (with the
# possible to los
e
up to 30 seconds of log in the worst scenario (with the
# default Linux settings).
# default Linux settings).
#
#
# If you have latency problems turn this to "yes". Otherwise leave it as
# If you have latency problems turn this to "yes". Otherwise leave it as
...
@@ -385,10 +385,10 @@ no-appendfsync-on-rewrite no
...
@@ -385,10 +385,10 @@ no-appendfsync-on-rewrite no
# Automatic rewrite of the append only file.
# Automatic rewrite of the append only file.
# Redis is able to automatically rewrite the log file implicitly calling
# Redis is able to automatically rewrite the log file implicitly calling
# BGREWRITEAOF when the AOF log size
will
grow
th
by the specified percentage.
# BGREWRITEAOF when the AOF log size grow
s
by the specified percentage.
#
#
# This is how it works: Redis remembers the size of the AOF file after the
# This is how it works: Redis remembers the size of the AOF file after the
# latest rewrite (
or
if no rewrite happened since the restart, the size of
# latest rewrite (if no rewrite
has
happened since the restart, the size of
# the AOF at startup is used).
# the AOF at startup is used).
#
#
# This base size is compared to the current size. If the current size is
# This base size is compared to the current size. If the current size is
...
@@ -423,7 +423,7 @@ lua-time-limit 5000
...
@@ -423,7 +423,7 @@ lua-time-limit 5000
################################ REDIS CLUSTER ###############################
################################ REDIS CLUSTER ###############################
#
#
# Normal Redis instances can't be part of a Redis Cluster
,
only nodes that are
# Normal Redis instances can't be part of a Redis Cluster
;
only nodes that are
# started as cluster nodes can. In order to start a Redis instance as a
# started as cluster nodes can. In order to start a Redis instance as a
# cluster node enable the cluster support uncommenting the following:
# cluster node enable the cluster support uncommenting the following:
#
#
...
@@ -589,7 +589,7 @@ activerehashing yes
...
@@ -589,7 +589,7 @@ activerehashing yes
# Instead there is a default limit for pubsub and slave clients, since
# Instead there is a default limit for pubsub and slave clients, since
# subscribers and slaves receive data in a push fashion.
# subscribers and slaves receive data in a push fashion.
#
#
# Both the hard or the soft limit can be disabled
just
setting
i
t to zero.
# Both the hard or the soft limit can be disabled
by
setting t
hem
to zero.
client
-
output
-
buffer
-
limit
normal
0
0
0
client
-
output
-
buffer
-
limit
normal
0
0
0
client
-
output
-
buffer
-
limit
slave
256
mb
64
mb
60
client
-
output
-
buffer
-
limit
slave
256
mb
64
mb
60
client
-
output
-
buffer
-
limit
pubsub
32
mb
8
mb
60
client
-
output
-
buffer
-
limit
pubsub
32
mb
8
mb
60
...
@@ -598,7 +598,7 @@ client-output-buffer-limit pubsub 32mb 8mb 60
...
@@ -598,7 +598,7 @@ client-output-buffer-limit pubsub 32mb 8mb 60
# closing connections of clients in timeot, purging expired keys that are
# closing connections of clients in timeot, purging expired keys that are
# never requested, and so forth.
# never requested, and so forth.
#
#
# Not all tasks are perfor
e
md with the same frequency, but Redis checks for
# Not all tasks are perform
e
d with the same frequency, but Redis checks for
# tasks to perform accordingly to the specified "hz" value.
# tasks to perform accordingly to the specified "hz" value.
#
#
# By default "hz" is set to 10. Raising the value will use more CPU when
# By default "hz" is set to 10. Raising the value will use more CPU when
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment