# Valkey Standalone Configuration (Master-Replica mode) # Generated by Ansible - do not edit manually # Network bind {{ nebula_ip }} port 6379 protected-mode yes # Disable cluster mode cluster-enabled no # General daemonize no pidfile /run/valkey/valkey.pid loglevel notice logfile "" # Databases databases 16 # Memory Management maxmemory {{ valkey_maxmemory }} maxmemory-policy {{ valkey_maxmemory_policy }} # Persistence (minimal for caching) save "" appendonly no # Security - ACL-based authentication aclfile /etc/valkey/users.acl # Replication (configured on replicas only) {% if valkey_role == 'replica' %} replicaof {{ hostvars['valkey-01']['nebula_ip'] }} 6379 masterauth {{ valkey_admin_password }} masteruser admin {% endif %} # Limits maxclients 1000 timeout 0 tcp-keepalive 300 # Slow log slowlog-log-slower-than 10000 slowlog-max-len 128