-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredis.conf
More file actions
60 lines (49 loc) · 1.17 KB
/
redis.conf
File metadata and controls
60 lines (49 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Redis configuration for Platform Supervisor
# Network
bind 0.0.0.0
port 6379
protected-mode no
# General
daemonize no
supervised no
pidfile /var/run/redis_6379.pid
# Logging
loglevel notice
logfile ""
# Persistence
save 900 1 # Save if at least 1 key changed in 900 seconds
save 300 10 # Save if at least 10 keys changed in 300 seconds
save 60 10000 # Save if at least 10000 keys changed in 60 seconds
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir ./
# Memory Management
maxmemory 256mb
maxmemory-policy allkeys-lru
# Security (for development - use stronger auth in production)
# requirepass supervisor123
# Performance
tcp-keepalive 300
timeout 0
tcp-backlog 511
# Append Only File (AOF)
appendonly no
appendfilename "appendonly.aof"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
# Slow Log
slowlog-log-slower-than 10000
slowlog-max-len 128
# Advanced
hash-max-ziplist-entries 512
hash-max-ziplist-value 64
list-max-ziplist-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-ziplist-entries 128
zset-max-ziplist-value 64
hll-sparse-max-bytes 3000