Code Monkey home page Code Monkey logo

Comments (4)

DimCitus avatar DimCitus commented on May 13, 2024 1

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.

DimCitus avatar DimCitus commented on May 13, 2024

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.

Wolfsrudel avatar Wolfsrudel commented on May 13, 2024

I'm fine with this. :)

from pg_auto_failover.

Wolfsrudel avatar Wolfsrudel commented on May 13, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.