Git Product home page Git Product logo

pymongomanager's Introduction

MongoManager starts a cluster in one line of Python Build Status

MongoDB is a fast and scalable NoSQL database. It supports very high read and write operations. The main concepts are:

  • Cluster: A group of shards that manages scalability and replication.
  • Shard: A group of nodes dedicated to a data subset. Each shard manages it's own replication. All shards together provide horizontal scalability to MongoDB.
  • Chunk: Defines a range of data based on the key value. Each shard is in charge of a group of chunks. If a chunk grows too big it is split into two chunks, this is called migration.
  • Primary: Is the entry node of a shard. It supports all read and write operations. Furthemore, the primary node is the only one that supports write operations in a shard.
  • Secondary: Is the node providing replication to the shard (i.e. to MongoDB). It supports only write operation.

MongoManager

MongoManager is a Python library launching, stopping, managing MongoDB cluster in a few lines of code.

  • Easy: Just one class to start and manage a whole MongoDB cluster.
  • Flexible: Can creates mongod/s processes or plug on them.
  • Clear: Every step is clearly mentionned in a log or at the screen.

Examples

# Prepare data and log directories
cluster = MongoCluster().initialize()

# Start the whole cluster on all wanted machines
cluster.start()

# Stop the cluster
cluster.stop()

# Clean the directories
cluster.clean()

This example will start a cluster with default configuration (1 config replica set, 2 data replica sets, with a replica factor of 3).

# One line style
cluster = MongoCluster.initialize().start()
cluster.stop().clean()

Installation

It's a python module. Import it.

License

MongoManager is made under the terms of the MIT license.

pymongomanager's People

Contributors

afisse avatar

Watchers

James Cloos avatar Yoann Couillec avatar

pymongomanager's Issues

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.