-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add add_replica plan #166
Add add_replica plan #166
Conversation
938b35a
to
d388618
Compare
@reidmv The
On the replica, a puppet run produces this:
The contents of puppet.conf:
|
e389779
to
ee4d45c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this is good to merge as-is. Squash on merge – no need for more than one commit for this in history.
- It supports adding a replica to a Standard deployment, or to a Large deployment
- It has not been validated for adding a replica to an Extra Large deployment
- It is missing a classification update step, to ensure PEAdm's four node groups are correctly configured. This is not needed when replacing a failed replica with a new host of the same name, but will be needed for adding a replica to a cluster which did not have one at install time
I think we should park this where it's at, validated for replacing a missing a replica on Standard or Large clusters which previously had a working replica. Perhaps add a comment to the top of the file (Puppet Strings format?) indicating these limitations.
We should circle back to validating against Extra Large after we produce a peadm::add_postgresql
plan. A ready-to-go PostgreSQL server to pair with is important to being able to reliably test the plan.
Then, we should come back and add a mechanism to ensure classification is up to date after running an add_ plan, whether for replica or for postgresql server. New ticket.
@reidmv I'll run last tests on Standard and Large - didn't see Large succeed yet. |
@reidmv Also, if we don't support XL for now, should we remove the |
0cc5474
to
3e43b14
Compare
This lets plans pass [] in addition to undef to peadm target inputs to indicate no target. This is useful when building argument lists automatically and passing forward to peadm plans. Co-authored-by: Dimitri Tischenko <dimitri@puppet.com>
For the pending peadm::add_replica plan
Co-authored-by: Reid Vandewiele <reid@puppet.com>
This helps validate that the plan is syntactically valid, uses data correctly, etc. Useful for potential refactors. Co-authored-by: Dimitri Tischenko <dimitri@puppet.com>
Update the Github Actions workflow for peadm::add_replica to support optional ssh-debugging and to use the latest LTS by default Co-authored-by: Dimitri Tischenko <dimitri@puppet.com>
3e43b14
to
8226dff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased for clarity and extracted a discovered unrelated change to a new PR, #171.
LGTM! 👍
Add add_replica plan