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

Various IPVS updates for adding/removing real/sorry servers and changing inhibit #2380

Merged
merged 9 commits into from
Feb 5, 2024

Conversation

pqarmitage
Copy link
Collaborator

No description provided.

Commit 13c1d5c - "ipvs: Add/remove sorry server of group server
when reload" didn't handle inhibited sorry servers correctly. We
don't want to check for alive, but rather set.

Signed-off-by: Quentin Armitage <[email protected]>
When there is no sorry server, the quorum is not used, and real
servers are only removed if a checker fails. On the other hand
if there is a sorry server, if the number of alive real servers
falls below the quorum, all non-failed real servers are removed
when the sorry server is added. If the sorry server is remomed
from the configuration, non-failed real servers need to be
reinstated.

Signed-off-by: Quentin Armitage <[email protected]>
If there is a configuration change that adds inhibit_in_failure to the
sorry server but the sorry server is alive, the code was disabling the
sorry server. This commit corrects that.

Signed-off-by: Quentin Armitage <[email protected]>
If inhibit for a failed real server is changed on a reload, the real
server will need to be added (if inhibit is now set) or removed if
inhibit is cleared.

Signed-off-by: Quentin Armitage <[email protected]>
If a reload sets a sorry server to inhibited and the sorry server
is not active, then it needs to be added to the running configuration
with wieght 0 rather than weight 1.

Signed-off-by: Quentin Armitage <[email protected]>
If a reload clears inhibit for an inactive sorry server, the sorry
server is removed from the live ipvs configuration. Internally the
set flag needs to be cleared.

Signed-off-by: Quentin Armitage <[email protected]>
@pqarmitage pqarmitage merged commit 967fcf0 into acassen:master Feb 5, 2024
10 checks passed
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.

1 participant