question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client support for etcd dynamic cluster membership reconfiguration

See original GitHub issue

When running etcd server on the cloud (AWS, for example), as instances get terminated new instances with different IP addresses are launched to replace them. With time, an etcd cluster that used to be reachable through a set of IP addresses, will have a totally different set of addresses.

In order for the client to be able to keep connected and working with an ever changing set of cluster IP addresses, somethings are required. It seems that this client already has some of them. It already supports the configuration of both URIResolver and LoadBalancer which are essential for properly discovering all the nodes of a cluster but also implementing fallback strategies, as described in etcd client architecture docs https://etcd.readthedocs.io/en/latest/client-architecture.html#client-architecture

Nevertheless, I was not able to achieve the behaviour described in such architecture docs. The problems are the following:

  1. once an etcd host goes down, the client does not fallback to another host
  2. when a new host is added, it’s not automatically added in the channel

How do you think would be the correct way to achieve 1 and 2?

Ideally it would be possible to “fix” a channel by managing connections to hosts, adding and removing connections.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rcillocommented, Mar 26, 2019

@User979269852 I think this is part of grpc-core. I have a line like this in my project import io.grpc.LoadBalancerRegistry;

0reactions
luomengYcommented, Nov 2, 2022

@User979269852 I think this is part of grpc-core. I have a line like this in my project import io.grpc.LoadBalancerRegistry;

How is the “DnsSrvUriResolver” defined? Is there any specific implementation code?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Runtime reconfiguration - etcd
etcd comes with support for incremental runtime reconfiguration, which allows users to update the membership of the cluster at run time.
Read more >
Operating etcd clusters for Kubernetes
Configure an etcd cluster either by static member information or by dynamic discovery. For more information on clustering, see etcd ...
Read more >
Cluster discovery | Flatcar Container Linux
Flatcar Container Linux uses etcd, a service running on each machine, ... with the discovery URL in order to inform the other members...
Read more >
Operating etcd clusters for Kubernetes
For durability and high availability, run etcd as a multi-node cluster in production and back it up periodically. A five-member cluster is recommended...
Read more >
Restoring etcd quorum | OpenShift Container Platform 3.11
If you run etcd on a separate host, you must back up etcd, take down your etcd cluster, and form a new one....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found