mongoelector

Distributed master election and locking in mongodb


Keywords
mongoelector
License
GPL-3.0
Install
pip install mongoelector==0.6.0

Documentation

MongoElector

Join the chat at https://gitter.im/zebpalmer/MongoElector Code Health Documentation Status https://api.codacy.com/project/badge/Grade/9b0eca961d57462aac560bbee862eee7

About

The MongoElector project provides two pieces of distributed coordination; Distributed locks via 'MongoLocker' and master elections via 'MongoElector'. MongoElector makes heavy use of MongoLocker, but the locking functionality within MongoLocker can be used separately.

Note

As of 0.3.0 release, the distributed master election functionality is working. Additional features and functionality as well as bug fixes and minor API changes will be ongoing over the next couple of minor releases.

Features

  • Simple API to allow distributed master election
  • Distributed locking via MongoDB
  • Ensure/Verify a specific instance holds the lock
  • TTL

Todo

  • Cluster Health and Management within MongoElector