templates-zabbix-itguys/deploy_package/redis.conf

38 lines
741 B
Plaintext

################################################################################
# CONFIGURAÇÃO REDIS OTIMIZADA PARA ZABBIX
################################################################################
bind 127.0.0.1 ::1
port 6379
requirepass SuaSenhaRedisForteAqui123!
protected-mode yes
# Timeout & Keepalive
timeout 300
tcp-keepalive 300
# Persistência (RDB)
save 900 1
save 300 10
save 60 10000
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
dir /var/lib/redis
# Memória (1GB dedicado)
maxmemory 1gb
maxmemory-policy allkeys-lru
# Logging
loglevel notice
logfile /var/log/redis/redis-server.log
# Clientes
maxclients 1000
# Slow log
slowlog-log-slower-than 10000
slowlog-max-len 128