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

Gossip when a service is stopped / unloaded #5325

Open
christophermaier opened this issue Jul 12, 2018 · 5 comments
Open

Gossip when a service is stopped / unloaded #5325

christophermaier opened this issue Jul 12, 2018 · 5 comments
Labels
Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Priority:Medium Stale Type: Bug Issues that describe broken functionality

Comments

@christophermaier
Copy link
Contributor

christophermaier commented Jul 12, 2018

When you shut down a service, whether with hab svc unload or hab svc stop, we need to gossip the fact that the Supervisor is no longer running that service.

We don't do this now, and so the only way for a service to "disappear" from the census is if its Supervisor dies, because we have a bit of a conflation of Supervisor presence and Service presence. If you're running on "disposable infrastructure", this may be less of a problem, but can be very surprising / puzzling / dangerous otherwise.

We should confirm that once you hab svc start a stopped service re-load a previously unloaded service that we still send out the appropriate "service added" rumors.

@jamessewell
Copy link
Contributor

I just got stung by this - I'd been working on the assumption that when I stop a service it will be removed from my templated config files!

Any progress?

@christophermaier
Copy link
Contributor Author

@jamessewell Not yet, but we hope to get to this soon.

@username-is-already-taken2

Hi there, I came across this issue today, where my nginx config has stale members in it config. How are people working around this at the moment? what do I have to do to refresh my census data after I unload a svc to reflect the current state of play

@christophermaier christophermaier added Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Type: Bug Issues that describe broken functionality and removed A-supervisor labels Jul 24, 2020
@stale
Copy link

stale bot commented Aug 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

1 similar comment
@stale
Copy link

stale bot commented Oct 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you.

@stale stale bot added the Stale label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus:Supervisor Related to the Habitat Supervisor (core/hab-sup) component Priority:Medium Stale Type: Bug Issues that describe broken functionality
Projects
None yet
Development

No branches or pull requests

5 participants