47 lines
1.0 KiB
Plaintext
47 lines
1.0 KiB
Plaintext
# Redis configuration file
|
|
bind 0.0.0.0
|
|
port 6379
|
|
timeout 300
|
|
tcp-keepalive 300
|
|
daemonize no
|
|
pidfile /var/run/redis.pid
|
|
loglevel notice
|
|
logfile stdout
|
|
databases 16
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
stop-writes-on-bgsave-error yes
|
|
rdbcompression yes
|
|
rdbchecksum yes
|
|
dbfilename dump.rdb
|
|
dir /data
|
|
requirepass FireSkins@99999
|
|
masterauth FireSkins@99999
|
|
rename-command FLUSHDB ""
|
|
rename-command FLUSHALL ""
|
|
maxclients 10000
|
|
maxmemory 2gb
|
|
maxmemory-policy volatile-lru
|
|
appendonly no
|
|
appendfilename "appendonly.aof"
|
|
appendfsync everysec
|
|
no-appendfsync-on-rewrite no
|
|
auto-aof-rewrite-percentage 100
|
|
auto-aof-rewrite-min-size 64mb
|
|
lua-time-limit 5000
|
|
slowlog-log-slower-than 10000
|
|
slowlog-max-len 128
|
|
hash-max-listpack-entries 512
|
|
hash-max-listpack-value 64
|
|
list-max-listpack-size -2
|
|
set-max-intset-entries 512
|
|
set-max-listpack-entries 128
|
|
set-max-listpack-value 64
|
|
zset-max-listpack-entries 128
|
|
zset-max-listpack-value 64
|
|
client-output-buffer-limit normal 0 0 0
|
|
client-output-buffer-limit slave 256mb 64mb 60
|
|
client-output-buffer-limit pubsub 32mb 8mb 60
|
|
hz 10
|