Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: DNS service discovery before container is healthy #42949

Open
truong-hua opened this issue Oct 18, 2021 · 0 comments
Open

Feat: DNS service discovery before container is healthy #42949

truong-hua opened this issue Oct 18, 2021 · 0 comments
Labels
area/networking area/swarm kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.

Comments

@truong-hua
Copy link

Description

Currently, until docker 20.10, only healthy containers are available to be discovered through Docker Swarm DNS. It's great for the use case that another service would like to access a ready service. But in the use case that the service would like to detect it's peers to form a new cluster. Because the cluster is in initializing state so it can not be healthy and can not serve other clients, but without reporting healthy containers, peers won't be able to discover each other via Swarm DNS.

Examples of service that need to discover peers to form a cluster: etcd, rabbitmq, bookkeeper...

Expectation:

There is another domain that can be used for discover peers even they are not healthy yet (ex: unhealthy-tasks.service-name). And this behaviour is also true for hostname discovery of #34244. It could be a prefix like "unhealthy-" or "any-" to all of available current DNS domains.

@thaJeztah thaJeztah added area/networking area/swarm kind/enhancement Enhancements are not bugs or new features but can improve usability or performance. labels Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking area/swarm kind/enhancement Enhancements are not bugs or new features but can improve usability or performance.
Projects
None yet
Development

No branches or pull requests

2 participants