GithubHelp home page GithubHelp logo

split brain issue about repmgr HOT 4 CLOSED

enterprisedb avatar enterprisedb commented on August 12, 2024
split brain issue

from repmgr.

Comments (4)

ibarwick avatar ibarwick commented on August 12, 2024

Hi Jin

repmgrd does not currently support this kind of functionality. We are currently working on a new version with improved features, including improved metadata which would make it easier to support situations where "STONITH" ("shoot the other node in the head") is required.

Please note that the witness server does not function as a controlling instance for the cluster; it exists to ensure an odd number of nodes are running to provide a "casting vote" when deciding which node to promote in the kind of split brain situation you describe.

Regards

Ian Barwick

from repmgr.

tkrajca avatar tkrajca commented on August 12, 2024

Hi Jin,

I think I have got a working version of repmgrd for your scenario.

Basically, I added a 'gateway' configuration option. If a gateway is set, then the master (only the master) monitors/pings its gateway, if it detects that gateway is down for a configured period of time (the configured period of time is slightly smaller than the configured period of time for the master being down at the moment) - it cannot ping it any more, the master shuts itself down.

This should be pretty much how pgpool2 handles these types of scenarios.

So in your case, after shutting the network interface of the master down, repmgrd should shut the master down after a little while - just before the new master is promoted from the available slaves.

I'll add a pull request in a second, it would be great if you could review it/test it.

Thanks,
Tomas

from repmgr.

tkrajca avatar tkrajca commented on August 12, 2024

PR here #46

from repmgr.

martinmarques avatar martinmarques commented on August 12, 2024

This doesn't seem to be an issue really. repmgr is not where you have to look for STONITH (although it could be done with some scripting and the new events triggering them).

Closing this now

from repmgr.

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.