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_pgcluster.yml: Wait for caches to warm up after reboot #580

Merged
merged 8 commits into from
Feb 21, 2024

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Feb 20, 2024

Wait N minutes for the caches to warm up after restarting the server before updating the next server.
Note: Applicable when there are multiple replicas.

Variable: reboot_host_post_delay, default value: 5 (minutes).

  • Note: The required value of the variable depends on the size of the database, the load, and so on. But in most cases, it is better to raise the value to give more time to warm up the cache. If replicas are not used to balance the reading load, then delay can be disabled (value 0).

Additionally

  • All variables have been moved from the update_pgcluster.yml playbook file to update role vars/main.yml
  • Add more variables: reboot_host_after_update, reboot_host_timeout
  • Specify the full path to the psql command

@vitabaks vitabaks added the enhancement Improvement of the current functionality label Feb 20, 2024
@vitabaks vitabaks self-assigned this Feb 20, 2024
@vitabaks vitabaks merged commit 97e60ab into master Feb 21, 2024
17 checks passed
@vitabaks vitabaks deleted the update-post-reboot-delay branch February 21, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of the current functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant