Created
March 27, 2019 07:16
-
-
Save pierot/a2ef7c57f04033a0484641ef05c22248 to your computer and use it in GitHub Desktop.
Redis config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
daemonize yes | |
pidfile /var/run/redis/redis_6377.pid | |
port 6377 | |
bind 127.0.0.1 | |
timeout 180 | |
# TCP keepalive. | |
# | |
# If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence | |
# of communication. This is useful for two reasons: | |
# | |
# 1) Detect dead peers. | |
# 2) Take the connection alive from the point of view of network | |
# equipment in the middle. | |
# | |
# On Linux, the specified value (in seconds) is the period used to send ACKs. | |
# Note that to close the connection the double of the time is needed. | |
# On other kernels the period depends on the kernel configuration. | |
# | |
# A reasonable value for this option is 300 seconds, which is the new | |
# Redis default starting with Redis 3.2.1. | |
tcp-keepalive 300 | |
loglevel notice | |
logfile /var/log/redis/redis-server-6377.log | |
# To enable logging to the system logger, just set 'syslog-enabled' to yes, | |
# and optionally update the other syslog parameters to suit your needs. | |
# syslog-enabled no | |
# syslog-ident redis | |
# syslog-facility local0 | |
databases 1 | |
rdbcompression yes | |
dbfilename dump.rdbdir /var/lib/redis/6377 | |
maxclients 1000 | |
slowlog-log-slower-than 1000 | |
slowlog-max-len 128 | |
maxmemory 768mb | |
maxmemory-policy allkeys-lru | |
maxmemory-samples 5 | |
appendonly no | |
appendfsync everysec | |
no-appendfsync-on-rewrite no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment