Comments (4)
Hi @Wolfsrudel, because we use Synchronous Replication, the failover is done in a way that prevents data loss. As a result it can be considered a switchover for maintenance, and that's why we don't have another API for that use case.
from pg_auto_failover.
Hi @Wolfsrudel, thanks for the feedback.
The user autoctl_node
has just enough privileges to be used from a node running the pg_autoctl
tool. This does not include triggering a manual failover.
To use the perform_failover
API you need to log-in to the monitor as the database owner role: autoctl
. The creation steps of the database cluster for the monitor do not include opening the HBA for this role though, so the security of who's allowed to trigger a manual failover is for you to solve.
We should certainly extend our documentation of those API entries: leaving the issue open so that we have a chance to fix this.
from pg_auto_failover.
I'm fine with this. :)
from pg_auto_failover.
@DimCitus: is it possible to do a manual switchover for maintenance tasks? Failover is the hard way, I guess.
from pg_auto_failover.
Related Issues (20)
- Primary lost connection to secondary and no replication but monitor from third site still have connection to both allowing read access to secondary. HOT 2
- Any Kubernetes Statefulset YAML ready for a cluster with pg_auto_failover ? HOT 1
- Initialize an already existing primary server
- memory leak in version 2.0 HOT 4
- Deadlocks during pg_auto_failover operations HOT 1
- PostgreSQL 16 support HOT 13
- Error when building image using docs/citus/Dockerfile HOT 1
- ERROR candidate-priority value 10 is not valid. Valid values are integers from 0 to 100 🧐 HOT 1
- Switchover and failover get stuck in the report_lst status in certain configurations HOT 5
- Release 2.1 HOT 5
- Upgrade to 2.1 fails: extension "pgautofailover" has no update path from version "2.0" to version "2.1" HOT 4
- Citus formation upgrade path
- Error when creating Citus worker to a formation HOT 2
- When a secondary node is dropped, the FSM is promoted from secondary to single.
- Configuration parameter in pg_autoctl.cfg for the ability to clear PGDATA before running pg_basebackup HOT 1
- Possible FAILURE STATE in State Machine HOT 1
- How can I configure the maximum number of WAL segments a standby can lag behind the primary in pg_auto_failover?
- Hung (unclosed) old connections in idle status on the monitor from datanodes HOT 7
- How to install v2.0 with CentOS7 using yum? HOT 1
- If you modify the PGDATA directory, an error is reported when creating a Seondary Node. And the same operation is normal when creating Primary Node.
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 pg_auto_failover.