Skip to content

Commit

Permalink
HAProxy Disconnect clients on failover
Browse files Browse the repository at this point in the history
  • Loading branch information
indiebrain committed Jan 14, 2025
1 parent 77084d4 commit 82c0cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operator/redisfailover/service/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ backend redis-master
option tcp-check
tcp-check send info\ replication\r\n
tcp-check expect string role:master
server-template redis %d _redis._tcp.%s.%s.svc.cluster.local:%d check inter 1s resolvers k8s init-addr none init-state down
server-template redis %d _redis._tcp.%s.%s.svc.cluster.local:%d check inter 1s resolvers k8s init-addr none init-state down on-marked-down shutdown-sessions
`, port, rf.Spec.Redis.Replicas, redisName, namespace, port)

if rf.Spec.Haproxy.CustomConfig != "" {
Expand Down

0 comments on commit 82c0cc1

Please sign in to comment.