Giter Site home page Giter Site logo

agrajag's Introduction

Agrajag

Agrajag is a creature which, by coincidence, has been killed by Arthur Dent hundreds, maybe thousands of times. He has been reincarnated on multiple occasions, but Arthur Dent is, either directly or indirectly, responsible for his death in some way in every single life he has ever lived. He is first seen notably as a bowl of petunias. At this moment all we know about him are his thoughts: "Oh no, not again". After which many people speculated that if we knew exactly why the bowl of petunias thought this, we would know a lot more of the nature of the Universe than we do now. The reason Agrajag said this is because he was killed by Arthur in many ways before.

Daemon that sends repmgr's cluster status to zookeeper

This decouples the DB cluster from the clients or applications. The applications only need to talk to zookeeper to find out the current master.

The daemon runs on the DB nodes, polls repmgr for the current cluster status, and sends this data to zookeeper.

Usage

  • Start this daemon on each of the cluster's nodes that is running postgresql and repmgrd.
  • To start this daemon, you could use bin/svc start repmgr-to-zk. Feel free to use an alternate way to start this daemon if you prefer.

Configuration

repmgr-to-zk reads its configuration from the resources/config.edn file. The sample configuration file config.edn.sample can be used as a reference.

  • frequency-ms: Interval of publishing cluster status to zookeeper in milliseconds.
  • repmgr config-file: Path to repmgr's config file.
  • zookeeper connect: list of comma separated host:ports at which zookeepers are running.
  • zookeeper master-path: path to the node that contains the ip/hostname of the master in the DB cluster.

License

Copyright © 2016 Staples Sparx. Released under the MIT license. http://mit-license.org/

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.