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

Refactor config_pgcluster.yml, add the leader identification and backup settings #444

Merged
merged 5 commits into from
Aug 19, 2023

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Aug 19, 2023

  • Add the leader (Primary) identification and dynamic inventory for the config_pgcluster.yml playbook.

    • Previously, our approach relied on the "master" group in the inventory to designate tasks such as user or database creation. This presented challenges when the designated host in the inventory transitioned from a leader to a replica (e.g., post-switchover). Such transitions resulted in errors since database object creation mandates execution on the primary (leader) node.
  • Add the pgBackRest and WAL-G roles into the config_pgcluster.yml playbook.

    • Previously, backup configurations were absent in the 'config_pgcluster.yml' playbook. This posed an inconvenience: any modification to backup configurations or schedules necessitated the execution of 'deploy_pgcluster.yml'. This wasn't optimal since 'deploy_pgcluster.yml' is primarily intended for the initial cluster deployment.

@vitabaks vitabaks self-assigned this Aug 19, 2023
@vitabaks vitabaks changed the title config_pgcluster: Get Patroni Cluster Leader Node config_pgcluster: Refactor leader identification and task delegation in PostgreSQL HA Cluster Aug 19, 2023
@vitabaks vitabaks changed the title config_pgcluster: Refactor leader identification and task delegation in PostgreSQL HA Cluster Refactor config_pgcluster.yml, add leader Identification in PostgreSQL HA Cluster. Aug 19, 2023
@vitabaks vitabaks added the enhancement Improvement of the current functionality label Aug 19, 2023
@vitabaks vitabaks changed the title Refactor config_pgcluster.yml, add leader Identification in PostgreSQL HA Cluster. Refactor config_pgcluster.yml, add the leader identification Aug 19, 2023
@vitabaks vitabaks changed the title Refactor config_pgcluster.yml, add the leader identification Refactor config_pgcluster.yml, add the leader identification and backup settings Aug 19, 2023
@vitabaks vitabaks merged commit 7ec51a3 into master Aug 19, 2023
18 checks passed
@vitabaks vitabaks deleted the improve-config branch September 13, 2023 12:29
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