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

Incorrect healthcheck config in the template #4

Open
Tadas opened this issue Jul 25, 2017 · 1 comment
Open

Incorrect healthcheck config in the template #4

Tadas opened this issue Jul 25, 2017 · 1 comment

Comments

@Tadas
Copy link

Tadas commented Jul 25, 2017

I think the provided config is incorrect and will not work as intended due to incorrect priorities and check script weight:

  • Master has priority of 100, BACKUP has priority of 50
  • vrrp_script chk_service has weight of 2 - there is no way a failed check can make BACKUP priority > MASTER priority

Change the script weight to -51 or tune the priorities so that the script can influence which node has more priority.

https://serverfault.com/questions/718132/keepalived-vrrp-script-not-failing-over

@csayler
Copy link

csayler commented Aug 30, 2019

I think the provided config is incorrect and will not work as intended due to incorrect priorities and check script weight:

  • Master has priority of 100, BACKUP has priority of 50
  • vrrp_script chk_service has weight of 2 - there is no way a failed check can make BACKUP priority > MASTER priority

Change the script weight to -51 or tune the priorities so that the script can influence which node has more priority.

https://serverfault.com/questions/718132/keepalived-vrrp-script-not-failing-over

Yep that is correct master weight should be 1 point higher than slaves, 51 or 101.

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

No branches or pull requests

2 participants