Comments (8)
@vitabaks, Yes, I confirm that with the latest repository releases, there are no problems with the recovery method at a certain point in time.
@kumarashish071092, Hi, look at my comment on the PITR problem earlier, maybe it will help you: #588 (comment)
from postgresql_cluster.
@kumarashish071092 Please attach the ansible and patroni logs.
from postgresql_cluster.
from postgresql_cluster.
Ok, good!
I will prepare a website with detailed documentation soon.
from postgresql_cluster.
You may have an old version of automation because for pgbackrest we have not used the bootstrap method to provide delta restore functionality for a long time.
See details here https://github.com/vitabaks/postgresql_cluster#restore-and-cloning
from postgresql_cluster.
from postgresql_cluster.
Is there any other way to restore pgbackrest with patroni
And why are you not satisfied with the current method? It is fully automated.
Point-In-Time-Recovery
https://github.com/vitabaks/postgresql_cluster#restore-and-cloning
You can run automatic restore of your existing patroni cluster
for PITR, specify the required parameters in the main.yml variable file and run the playbook with the tag:
ansible-playbook deploy_pgcluster.yml --tags point_in_time_recovery
What does automation do? (recovery steps with pgBackRest):
1. Stop patroni service on the Replica servers (if running);
2. Stop patroni service on the Master server;
3. Remove patroni cluster "xxxxxxx" from DCS (if exist);
4. Run "/usr/bin/pgbackrest --stanza=xxxxxxx --delta restore" on Master;
5. Run "/usr/bin/pgbackrest --stanza=xxxxxxx --delta restore" on Replica (if patroni_create_replica_methods: "pgbackrest");
6. Waiting for restore from backup (timeout 24 hours);
7. Start PostgreSQL for Recovery (master and replicas);
8. Waiting for PostgreSQL Recovery to complete (WAL apply);
9. Stop PostgreSQL instance (if running);
10. Disable PostgreSQL archive_command (if enabled);
11. Start patroni service on the Master server;
12. Check PostgreSQL is started and accepting connections on Master;
13. Make sure the postgresql users (superuser and replication) are present, and password does not differ from the specified in vars/main.yml;
14. Update postgresql authentication parameter in patroni.yml (if superuser or replication users is changed);
15. Reload patroni service (if patroni.yml is updated);
16. Start patroni service on Replica servers;
17. Check that the patroni is healthy on the replica server (timeout 10 hours);
18. Check postgresql cluster health (finish).
from postgresql_cluster.
@SDV109 Please confirm that you are already using the automated Point-In-Time-Recovery method. Do you have any difficulties with this?
from postgresql_cluster.
Related Issues (20)
- Setting HA true switched alma9 from init 3 to init 5 and wiped out ssh keys causing man in the middle banner and failure HOT 7
- Have Different default_pool_size for two seperate database HOT 6
- How to install pgbackrest with init cluster ? HOT 15
- Restart of pgbouncer fails HOT 9
- The connection is getting timeout with errors while making conenctions with pgbouncer HOT 1
- Consul service structure clarification needed HOT 5
- Add supported OS: RedOs, Astralinux HOT 1
- Debian 12 - Ansible Issue - etcd Download Package HOT 3
- ansible-playbook update_pgcluster.yml -e target=system fails HOT 12
- Question: user, db are not created when fresh cluster installs due skip result in condition HOT 1
- TODO: pgcat as an alternative to pgbouncer and more HOT 6
- importlib.metadata.PackageNotFoundError: No package metadata was found for patroni HOT 1
- Question: In some reason I have always basic pg_hba.conf file content without users and vm ips HOT 1
- Wal-g backup and restore command doenst work Ubuntu 22.04 due syntax issue HOT 3
- Molecule tests docker availability issue HOT 2
- Problems when upgrading cluster HOT 2
- remove_cluster.yml - Documentation HOT 1
- How to use the tool to setup PG HA without internet? HOT 5
- Unable to start service etcd HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from postgresql_cluster.