Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

mesos-consul deosn't deregister services when a worker node is shut down #1835

Open
aitzkowi opened this issue Sep 19, 2016 · 7 comments
Open

Comments

@aitzkowi
Copy link

Using mantl 1.2.0
I have a mantl cluster running mesos with several services running on worker nodes.
When I shut-down the worker-001 node, marathon automatically relaunches the services running on worker-001 on other worker nodes (e.g. worker-003).
However, in consul the service remains registered on worker-001 (as well as on the new worker-003).
shouldn't mesos-consul detect that the service is no longer running on worker-001 and call "consul deregister"?

@ChrisAubuchon
Copy link
Contributor

In this situation, mesos-consul is trying to deregister the service that was running on worker-001. In order to do that, however, it needs to connect to the agent on worker-001 to deregister. Since the node (and the agent) is down it cannot deregister the service.

Consul should recognize that the service on worker-001 is unavailable and should not return it when queried.

@KaGeN101
Copy link
Contributor

KaGeN101 commented Apr 25, 2017

This is current case for all consul services irrelevant where they are deployed, even k8 pods stay visible after the pods have been destroyed
Seem like keys now have ttl should probably investigate using that then they will auto remove after no heartbeat with ttl:

hashicorp/consul#172

@Theaxiom
Copy link
Contributor

@ChrisAubuchon are you able to assist with this issue?

@kbroughton
Copy link
Contributor

kbroughton commented Apr 25, 2017 via email

@ChrisAubuchon
Copy link
Contributor

ChrisAubuchon commented Apr 26, 2017

mesos-consul does not interact with Kubernetes so @KaGeN101's issue is unrelated to mesos-consul.

@KaGeN101
Copy link
Contributor

I have seen all the k8 pods on the only consul there is. Consul is also k8s default store hence the k8-consul fork. Every pod you create in k8 ends up in consul and just stays there even if you destroy the pod

@KaGeN101
Copy link
Contributor

It is not just mesos-consul it is consul for both mesos and k8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants