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

Update the tasks to check the availability of the VIP address #623

Merged
merged 6 commits into from
Apr 9, 2024

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Apr 5, 2024

Update task "Wait for the cluster IP address (VIP) is running" (if cluster_vip is defined)

keepalived

  • Add 'ignore_errors: true' to show the error and continue the playbook execution
    • In some environments with strict SSH access rules, checking the availability of an IP address over an SSH port may not work. To handle such cases, we added 'ignore_errors' to the task "Wait for the cluster IP address (VIP) is running" to continue the playbook execution even if the IP address check fails.
  • Use the pgbouncer_listen_port (or postgresql_port if 'pgbouncer_install' is 'false') to check the availability of the VIP address. Otherwise, it defaults to SSH port, applicable during deployment when the database is not yet available.
  • Change the check timeout from 2 minutes to 30 seconds

vip-manager

  • Add 'ignore_errors: true' to show the error and continue the playbook execution
  • Use the pgbouncer_listen_port (or postgresql_port if 'pgbouncer_install' is 'false') to check the availability of the VIP address
  • Change the check timeout from 2 minutes to 30 seconds

@vitabaks vitabaks self-assigned this Apr 5, 2024
@vitabaks vitabaks changed the title keepalived: Add 'ignore_errors' for task "Wait for VIP is running" Update the tasks to check the availability of the VIP address Apr 9, 2024
@vitabaks vitabaks merged commit 238f2fa into master Apr 9, 2024
17 checks passed
@vitabaks vitabaks deleted the vip-check branch April 9, 2024 11:45
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