Skip to content

Commit

Permalink
reject connections if backends are down
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Apr 2, 2024
1 parent 48ee5b8 commit 88776fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/loadbalancer/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ defaults
frontend {{$index}}-frontend
bind {{ $data.BindAddress }}
default_backend {{$index}}-backend
# reject connections if all backends are down
tcp-request connection reject if { nbsrv({{$index}}-backend) lt 1 }
backend {{$index}}-backend
option httpchk GET /healthz
Expand Down

0 comments on commit 88776fd

Please sign in to comment.