45 lines
848 B
Plaintext
45 lines
848 B
Plaintext
# Redis configuration file for o2sound
|
|
|
|
# Network
|
|
bind 0.0.0.0
|
|
protected-mode no
|
|
port 6379
|
|
|
|
# General
|
|
daemonize no
|
|
supervised no
|
|
pidfile /var/run/redis_6379.pid
|
|
loglevel notice
|
|
logfile ""
|
|
|
|
# Snapshotting (RDB persistence)
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
stop-writes-on-bgsave-error yes
|
|
rdbcompression yes
|
|
rdbchecksum yes
|
|
dbfilename dump.rdb
|
|
dir /data
|
|
|
|
# Append Only File (AOF persistence)
|
|
appendonly yes
|
|
appendfilename "appendonly.aof"
|
|
appendfsync everysec
|
|
no-appendfsync-on-rewrite no
|
|
auto-aof-rewrite-percentage 100
|
|
auto-aof-rewrite-min-size 64mb
|
|
|
|
# Memory management
|
|
maxmemory 256mb
|
|
maxmemory-policy allkeys-lru
|
|
|
|
# Slow log
|
|
slowlog-log-slower-than 10000
|
|
slowlog-max-len 128
|
|
|
|
# Client output buffer limits
|
|
client-output-buffer-limit normal 0 0 0
|
|
client-output-buffer-limit replica 256mb 64mb 60
|
|
client-output-buffer-limit pubsub 32mb 8mb 60
|