externalTrafficPolicy of tidb service should default to local in terraform deployment #879
Labels
area/terraform
good first issue
Good for newcomers
lifecycle/stale
status/help-wanted
Extra attention is needed
type/bug
Something isn't working
Bug Report
When the
externalTrafficPolicy
is set to cluster (the default value), every Kubernetes node is a valid backend for the load balancer, a single machine failure will impact part of new connections. More seriously, for immature clients that has a 0 connect-timeout (no timeout), the new connections that routed to the failure machine hangs forever.With
externalTrafficPolicy
set tolocal
, the nodes without backend pods route the traffic to blackhole, therefore, LB can mark these nodes as unhealthy when performs the initial check.local
mode may cause unbalanced traffic, but not for our terraform deployment which uses dedicated node.What did you do?
What did you expect to see?
No impact on the workload
What did you see instead?
mysqlcli hangs forever
cc @tennix @weekface
ref:
https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/
https://www.asykim.com/blog/deep-dive-into-kubernetes-external-traffic-policies
The text was updated successfully, but these errors were encountered: