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

Avoid de-registering slowly restored services - attempt 2 #5838

Closed
wants to merge 1 commit into from

Conversation

notnoop
Copy link
Contributor

@notnoop notnoop commented Jun 14, 2019

This is an alternative implementation to #5837 that I didn't like as much.

Here, we attempt to mitigate against this by introducing a delay for deleting
consul services and checks that we didn't explicitly de-registered. So
if we notice a service not recognized by Nomad yet, delete it after a
delay period (e.g. 5 minutes here), unless it's registered by then.

I believe #5837 is a bit simpler but opening this as draft if folks want to discuss it

When a nomad client restarts/upgraded, nomad restores state from running
task and starts the sync loop.  If sync loop runs early, it may
deregister services from Consul prematurely even when Consul has the
running service as healthy.

This is not ideal, as re-registering the service means potentially
waiting a whole service health check interval before declaring the
service healthy.

We attempt to mitigate against this by introducing a delay for deleting
consul services and checks that we didn't explicitly de-registered.  So
if we notice a service not recognized by Nomad yet, delete it after a
delay period (e.g. 5 minutes here), unless it's registered by then.
@notnoop
Copy link
Contributor Author

notnoop commented Jul 19, 2019

closing as the alternative #5837 was merged already.

@notnoop notnoop closed this Jul 19, 2019
@github-actions
Copy link

github-actions bot commented Feb 6, 2023

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant