Cybersecurity-Projects/PROJECTS/advanced/ai-threat-detection/infra/redis/redis.conf

59 lines
936 B
Plaintext

# ©AngelaMos | 2026
# redis.conf
bind 0.0.0.0
protected-mode yes
rename-command FLUSHALL ""
rename-command FLUSHDB ""
rename-command CONFIG ""
rename-command SHUTDOWN ""
rename-command MONITOR ""
rename-command DEBUG ""
rename-command SLAVEOF ""
rename-command MIGRATE ""
loglevel notice
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 100
appendonly yes
appendfsync everysec
save 900 1
save 300 10
save 60 10000
maxmemory 2gb
maxmemory-policy allkeys-lru
maxclients 10000
tracking-table-max-keys 1000000
port 6379
io-threads 4
io-threads-do-reads yes
tcp-backlog 2048
timeout 0
tcp-keepalive 300
activedefrag yes
active-defrag-ignore-bytes 25mb
active-defrag-threshold-lower 5
active-defrag-threshold-upper 20
active-defrag-cycle-min 1
active-defrag-cycle-max 75
lazyfree-lazy-eviction yes
lazyfree-lazy-expire yes
lazyfree-lazy-server-del yes
replica-lazy-flush yes
jemalloc-bg-thread yes