arvandor/ansible/templates/valkey-cluster.conf.j2
2026-01-26 00:44:31 -05:00

45 lines
829 B
Django/Jinja

# Valkey Cluster Configuration
# Generated by Ansible - do not edit manually
# Network
bind {{ nebula_ip }}
port 6379
protected-mode yes
# Cluster mode
cluster-enabled yes
cluster-config-file /var/lib/valkey/nodes.conf
cluster-node-timeout 5000
cluster-announce-ip {{ nebula_ip }}
cluster-announce-port 6379
cluster-announce-bus-port 16379
# General
daemonize no
pidfile /run/valkey/valkey.pid
loglevel notice
logfile ""
# Databases (cluster mode only uses db 0)
databases 1
# Memory Management
maxmemory {{ valkey_maxmemory }}
maxmemory-policy {{ valkey_maxmemory_policy }}
# Persistence (minimal for cluster mode)
save ""
appendonly no
# Security - ACL-based authentication
aclfile /etc/valkey/users.acl
# Limits
maxclients 1000
timeout 0
tcp-keepalive 300
# Slow log
slowlog-log-slower-than 10000
slowlog-max-len 128