Skip to content

Force health check after unbanning and make is_banned more light weight #184

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

Conversation

zainkabani
Copy link
Contributor

@zainkabani zainkabani commented Oct 3, 2022

A banned instance will only be banned for the duration of the ban_time setting. If an instance experiences issues longer than the ban time and shorter than the health check delay, it will return to the pool of available instances and clients will connect to the bad replica.

This PR makes the is_banned function more lightweight (it's used by the admin db) and forces health check after unbanning an instance

@zainkabani zainkabani marked this pull request as draft October 3, 2022 20:04
@zainkabani zainkabani changed the title Perform health check before unbanning Force health check after unbanning and make is_banned more light weight Oct 4, 2022
@zainkabani zainkabani marked this pull request as ready for review October 4, 2022 15:56
@levkk levkk requested a review from drdrsh October 5, 2022 00:49
Copy link
Contributor

@levkk levkk left a comment

Choose a reason for hiding this comment

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

LGTM

@zainkabani zainkabani closed this Oct 20, 2022
@levkk
Copy link
Contributor

levkk commented Oct 20, 2022

This was a good idea. Looking forward to the next PR.

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