Comments (9)
postgres.yaml:
postgresql:
parameters:
archive_mode: "on"
archive_command: envdir "/path/to/env-dir" wal-e wal-push "%p"
recovery_conf:
restore_command: envdir "/path/to/env-dir" wal-e wal-fetch "%f" "%p"
Although don't forget to create a cronjob, which will do envdir "/path/to/env-dir" wal-e backup-push "/path/to/postgres/data/directory"
Please read about envdir in wal-e documentation: https://github.com/wal-e/wal-e/
from patroni.
Replicas are executing not archive_command but restore_command
from patroni.
Hi Josh,
Take a look at scrips/restore.py. The code there deals with initialization of new replicas. It was intentionally moved out of the core Patroni to avoid requiring unnecessary dependencies for non-AWS use-cases. The WAL-E support relies on the archive/restore command being properly configured in Patroni, as well as regular base backups (part of the Docker container in the Spilo project).
from patroni.
Oh, I see!
How does restore integrate with the rest of patroni?
from patroni.
@jberkus @alexeyklyukin This issue's almost a year old -- can we resolve or close?
from patroni.
From my POV it's not an issue anymore.
from patroni.
OK, I'll close and you guys can reopen if necessary.
from patroni.
Is there any public documentation on how to use patroni + wal-e? I am failing to get it configured.
from patroni.
@CyberDem0n Thank you. Would that not also result in slaves pushing archives via wal-e? (Or is that not a concern because the WAL files are identical?)
from patroni.
Related Issues (20)
- patronictl does not work HOT 1
- Patroni synchronous replication not working HOT 2
- DOC TIP on pg_ctl and wal_keep_segments HOT 1
- Need Help in Setting up docker-compose-citus.yaml HOT 2
- RAFT - failed to update leader lock HOT 1
- Acceptance tests fail on Debian unstable for Postgres < 12 HOT 5
- Failed to determine PostgreSQL state from the connection HOT 1
- Parameters such as max_connections, max_replication_slots, etc changed. No apparent way to find out how, by who, what or when change occurred. HOT 1
- Patroni changed leader for some reason HOT 12
- Do not check if Port is already in use with --validate-config HOT 1
- Migrate setup.py to pyproject.toml HOT 1
- max_connection value doesn't work unless you do with patronictl edit-config HOT 3
- List order of sync_standby is inconsistent with synchronous_standby_names
- Unexpected state for replicatefrom after switchover HOT 2
- patroni-consul RPM requires consul package HOT 2
- 3.2.2 throwing unexpected exception HOT 7
- Feature request: Include replication state in Consul service tags HOT 1
- Infinite recursion in handling of replicatefrom tags HOT 3
- patroni_failsafe_mode_is_active prometheus metric always 0 HOT 3
- Unable to connect to external etcdv3 cluster with client TLS authentication (with CommonName in cert) HOT 1
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 patroni.