-
Notifications
You must be signed in to change notification settings - Fork 9
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
Install and configure pgbackrest on patroni cluster #3251
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3251 +/- ##
=======================================
Coverage 81.94% 81.94%
=======================================
Files 275 275
Lines 9489 9489
Branches 445 445
=======================================
Hits 7776 7776
Misses 1594 1594
Partials 119 119 ☔ View full report in Codecov by Sentry. |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p -m 777 /var/log/pgbackrest \ |
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.
Folders for pgbackrest
are created up front and modified so the non-root user that runs in openshift can access these files when issuing pgbackrest
commands
echo "Restarting postgres to init config" | ||
pg_ctl restart -D /home/postgres/pgdata/pgroot/data | ||
echo "Creating pgbackrest stanza" | ||
pgbackrest --stanza="$NAME-cluster-1" --pg1-path=/home/postgres/pgdata/pgroot/data --pg1-port=5432 stanza-create |
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.
Wondering where/how the $NAME
gets set? Does $NAME
have to be demo
in order to match the stanza parameter on line 5 above?
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.
Nice work! Thanks for taking this one on!
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
closes: #2751
pgbackrest terminology:
See: https://pgbackrest.org/configuration.html#section-stanza
See: https://pgbackrest.org/configuration.html#section-archive
See: https://pgbackrest.org/configuration.html#section-repository
Test Links:
Landing Page
MoreCast 2.0
Percentile Calculator
MoreCast
C-Haines
FireBat
FireBat bookmark
Auto Spatial Advisory (ASA)
HFI Calculator