GithubHelp home page GithubHelp logo

isabella232 / mongoz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yandex/mongoz

0.0 0.0 0.0 161 KB

An alternative implementation of MongoDB sharding server aimed at high availability

License: MIT License

C++ 95.89% C 1.17% Assembly 0.71% Makefile 1.12% M4 1.11%

mongoz's Introduction

Mongoz is a replacement for MongoDB sharding server (mongos) aimed at higher availability in less-than-absolutely-reliable network environments at expense of somewhat relaxed consistency guarantees.

Some distinguishing features of mongoz include:

  • Hard timeouts: each operation has to finish in predefined time. In case of network failures, clients get their errors early (i.e. they don't have to wait for i/o timeout from operating system) and thus are much less likely to face a DoS.

  • Early request retransmission: if there's more than one replica capable of handling a request, mongoz can be configured to retransmit a request to another replica before a timeout occurs and return whichever reply comes first. That way, even a network failure in the middle of a performing request does not neccessarily lead to any errors reported to clients.

  • Config caching: mongoz does not query its config servers upon a specific event (like incoming connection or authentication attempt). Instead, it keeps its local copy of the whole cluster config and synchronizes it periodically with config servers. As a result, unavailable config servers (even all of them) still don't render the whole cluster unusable.

Mongoz strictly obeys MongoDB wire protocol and thus can be used as a drop-in replacement for mongos. Moreover, it can freely coexist with mongos within a same MongoDB cluster if neccessary.

More detailed description of mongoz features can be found in its man page.

mongoz's People

Contributors

nul1 avatar

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.