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

Improvements and simplification of the cluster scaling process. #290

Merged
merged 10 commits into from
Mar 29, 2023

Conversation

vitabaks
Copy link
Owner

@vitabaks vitabaks commented Mar 25, 2023

Playbook add_pgnode.yml

  • Previously, you had to add a new node yourself to the pg_hba.conf file on all nodes of existing cluster before adding a new node to the cluster. Now it will be done automatically.

  • Previously, it was necessary to add a new node (which you want to add to existing cluster) in the [replica] group and at the same time remove other nodes from the replica group from inventory in order to add_pgnode.yml playbook was executed specifically for the new server.
    Now you do not need to do this, you just need to specify the variable new_node=true for the server that you are adding to the cluster and the playbook will be executed only on this server.

Playbook add_balancer.yml

  • Previously, configuration files were copied from the server from the master group. This is not very convenient, for example, when the load balancers are placed on separate servers. Now the files are copied from the first server specified in the inventory file in the balancers group.
  • Specify the variable new_node=true for the balancer server that you are adding to the cluster and the playbook will be executed only on this server.

Previously, it was necessary to add a new node (which you want to add to existing cluster) in the [replica] group and at the same time remove other nodes from the replica group from inventory in order to add_pgnode.yml playbook was executed specifically for the new server.
Now you do not need to do this, you just need to specify the variable new_node=true for the server that you are adding to the cluster and the playbook will be executed only on this server.
Previously, you had to add a new node yourself to the pg_hba.conf file on all nodes of existing cluster before adding a new node to the cluster. Now it will be done automatically.
@vitabaks vitabaks self-assigned this Mar 25, 2023
@vitabaks vitabaks added the enhancement New feature or request label Mar 25, 2023
Repository owner deleted a comment from github-actions bot Mar 28, 2023
@vitabaks vitabaks merged commit 53c8a2e into master Mar 29, 2023
@vitabaks vitabaks deleted the cluster-scaling-improve branch May 3, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant