mirror of
https://github.com/hanzoai/redis.git
synced 2026-10-30 18:25:12 +00:00
- Add redis.conf with performance tuning - Add compose.yml for Redis Stack + exporter - Add LLM.md with caching patterns documentation - Configure for sessions, rate limiting, LLM caching
69 lines
1.2 KiB
Plaintext
69 lines
1.2 KiB
Plaintext
# Hanzo Memory - Redis Configuration
|
|
|
|
# Network
|
|
bind 0.0.0.0
|
|
port 6379
|
|
tcp-backlog 511
|
|
timeout 300
|
|
tcp-keepalive 300
|
|
|
|
# Memory
|
|
maxmemory 2gb
|
|
maxmemory-policy allkeys-lru
|
|
maxmemory-samples 5
|
|
|
|
# Persistence
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
stop-writes-on-bgsave-error yes
|
|
rdbcompression yes
|
|
rdbchecksum yes
|
|
dbfilename dump.rdb
|
|
|
|
# Append-only file
|
|
appendonly yes
|
|
appendfilename "appendonly.aof"
|
|
appendfsync everysec
|
|
no-appendfsync-on-rewrite no
|
|
auto-aof-rewrite-percentage 100
|
|
auto-aof-rewrite-min-size 64mb
|
|
|
|
# Logging
|
|
loglevel notice
|
|
logfile ""
|
|
|
|
# Clients
|
|
maxclients 10000
|
|
|
|
# Slow log
|
|
slowlog-log-slower-than 10000
|
|
slowlog-max-len 128
|
|
|
|
# Event notifications (for pub/sub)
|
|
notify-keyspace-events "Ex"
|
|
|
|
# Lua scripting
|
|
lua-time-limit 5000
|
|
|
|
# Latency monitoring
|
|
latency-monitor-threshold 100
|
|
|
|
# Active defragmentation
|
|
activedefrag yes
|
|
active-defrag-ignore-bytes 100mb
|
|
active-defrag-threshold-lower 10
|
|
active-defrag-threshold-upper 100
|
|
active-defrag-cycle-min 1
|
|
active-defrag-cycle-max 25
|
|
|
|
# Thread I/O
|
|
io-threads 4
|
|
io-threads-do-reads yes
|
|
|
|
# Module loading (redis-stack includes these)
|
|
# loadmodule /opt/redis-stack/lib/rejson.so
|
|
# loadmodule /opt/redis-stack/lib/redisearch.so
|
|
# loadmodule /opt/redis-stack/lib/redistimeseries.so
|
|
# loadmodule /opt/redis-stack/lib/redisbloom.so
|