etcd icon indicating copy to clipboard operation
etcd copied to clipboard

Automatically switch endpoint when one endpoint is not available

Open HardySimpson opened this issue 9 years ago • 1 comments

we found when 1 of 3 instance of etcd is network partition witch other 2,

still the client can access this instance, and grpc connection is keep alive, then all request will failed and report like this

#kubectl get node --all-namespaces
Error from server: rpc error: code = 14 desc = etcdserver: request time out

out etcd version is 3.1.9

this error is not happen is etcd v2

HardySimpson avatar Jul 28 '17 08:07 HardySimpson

put a PR on https://github.com/coreos/etcd/pull/8327

It is a design a little bit different with grpc health-check way, which have 2 advantage

  • health-check success do not mean normal request will success, they are different
  • no extra request cost, light-weight

the switch only happens at request fail,

and switch at most one time in 30 seconds, to avoid too frequently switch

HardySimpson avatar Jul 28 '17 08:07 HardySimpson