Comments (3)
most likely patroni doesn't allow replication from replica instead of leader
To be precise, standby-leader wants to replicate from the primary. Yes.
i need to replicate the data from standby patroni cluster to rollback cluster which is still in read-only session until it got promoted
There is no real need to do it. What you should better do - gracefully convert cluster in the DC1 to standby as it is described here: #1660 (comment)
In fact, you can immediately put host
and port
to standby_cluster
section in DC1, so that after promoting standby cluster in DC2 the cluster from DC1 will start replicating.
from patroni.
Thanks for the explanation! really appreciate it
But in my use case, the service has very big transaction. if i immediately create fail forward replication from DC2 to DC1, it maybe works but maybe not as well, hard to guarantee it.
So instead of doing this, we create separate rollback cluster in DC1 separate from existing cluster in DC1
so actually we do have migration project between DC 1 and DC2
so the topology is
existing patroni cluster DC1 (leader) -> standby patroni cluster DC2 (standby leader / replica from existing leader DC1) -> rollback patroni cluster DC1 (standby leader / replica from standby leader DC2)
those 2 DC has separate dcs.
with above topology, if anything goes wrong in DC2, we can immediately promote rollback cluster in DC1 and we don't need to worries about the transaction WAL because at the beginning we do have replication slot between DC2 and rollback cluster DC1.
Thanks
from patroni.
hi @CyberDem0n sorry to tag you again, about this PR, is there any information about when will it get the approval? Thanks!
from patroni.
Related Issues (20)
- cp in patroni 3.2.2 could not finish archiving the wal log. HOT 2
- Failed to get list of machines from V3<Unknown error: '404 page not found', HOT 1
- 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
- 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
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.