coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 303 forks source link

registry/rpc: use simpleBalancer instead of ClientConn.State() #1677

Closed dongsupark closed 7 years ago

dongsupark commented 7 years ago

This PR contains only the relevant code of https://github.com/coreos/fleet/pull/1673, without vendor updates.

As ClientConn.State() of gRPC has disappeared, we need to avoid using ClientConn.State(). Instead we should make use of gRPC rebalancer mechanism, just like etcdv3 is doing. To do that, introduce simpleBalancer, as a minimum structure to be used for grpc.Balancer.

/cc @hectorj2f

hectorj2f commented 7 years ago

@dongsupark I'll have a look to the PRs and test them in my local cluster.

dongsupark commented 7 years ago

As it's just a part of https://github.com/coreos/fleet/pull/1673, I'll close.