Skip to content

[Bugfix] Disable maintenance before healthcheck #299

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

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

ajanikow
Copy link
Collaborator

No description provided.

@ajanikow ajanikow requested review from KVS85 and neunhoef August 26, 2021 07:46
@ajanikow ajanikow force-pushed the bugfix/disable_maintenance_before_healthcheck branch from 4174412 to 9904bb4 Compare August 26, 2021 07:58
Copy link
Collaborator

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this does not solve the problem: It still first restarts the server and then switches Supervision to Maintenance. So in case of high load, there is still the possibility that the server goes down, then the Supervision makes it "BAD" (because of the delay in switching to Maintenance mode), then we switch to Maintenance, and even though the server comes back successfully, it stays "BAD" since the Supervision is in Maintenance mode.

Also: The solution looks overcomplicated, why can withMaintenance not just get two functions as arguments?

Copy link
Collaborator

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I have now understood. It is no problem if the server temporarily goes "BAD" in case of a delay, since the health check is after the supervision is back. Good.
And I also understood the setup with the functions.
LGTM

@ajanikow ajanikow merged commit c268d06 into master Aug 26, 2021
@ajanikow ajanikow deleted the bugfix/disable_maintenance_before_healthcheck branch August 26, 2021 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants