mirror of
https://github.com/idrainformatica/PecFlow.git
synced 2026-06-16 20:55:41 +02:00
37 lines
1.8 KiB
Plaintext
37 lines
1.8 KiB
Plaintext
# Redis configuration per PEChub
|
|
|
|
# ── Bind e rete ───────────────────────────────────────────────────────────────
|
|
bind 0.0.0.0
|
|
protected-mode no
|
|
port 6379
|
|
|
|
# ── Memoria ───────────────────────────────────────────────────────────────────
|
|
# In produzione aumentare in base ai volumi della coda
|
|
maxmemory 256mb
|
|
maxmemory-policy allkeys-lru
|
|
|
|
# ── Persistenza ───────────────────────────────────────────────────────────────
|
|
# Salva snapshot periodici
|
|
# Formato: save <secondi> <numero_modifiche>
|
|
save 900 1
|
|
save 300 10
|
|
save 60 10000
|
|
|
|
# Append-only file per durabilità più alta
|
|
appendonly yes
|
|
appendfilename "appendonly.aof"
|
|
appendfsync everysec
|
|
|
|
# ── Log ───────────────────────────────────────────────────────────────────────
|
|
loglevel notice
|
|
logfile ""
|
|
|
|
# ── Performance ───────────────────────────────────────────────────────────────
|
|
hz 10
|
|
dynamic-hz yes
|
|
latency-monitor-threshold 100
|
|
|
|
# ── Sicurezza ─────────────────────────────────────────────────────────────────
|
|
# In produzione aggiungere:
|
|
# requirepass change_me_in_production
|