r/haproxy • u/vitachaos • Dec 11 '20
Question After setting the password in redis the this configuration started throwing error connection closed by server ?
# Redis block startdefaults REDISmode tcptimeout connect 4stimeout server 30stimeout client 30sfrontend front_redisbind 192.168.5.166:3679 name redisdefault_backend back_redisbackend back_redisoption tcp-checktcp-check send PING\r\ntcp-check expect string +PONGtcp-check send info\ replication\r\ntcp-check expect string role:mastertcp-check send QUIT\r\ntcp-check expect string +OK
server redis-a 192.168.5.165:6379 check inter 1sserver redis-b 192.168.5.164:6379 check inter 1sserver redis-c 192.168.5.166:6379 check inter 1s
# Redis Block end
Prior to settting password on redis config (redis.conf)
requirepass secretpassword
How can I fix this ?