Giter Site home page Giter Site logo

cdb's Introduction

CDB

This cookbook helps to create a Clustered MongoDB scenario with Replication and Sharding. 4 VM instances are needed for it to work. These recipes are to be executed only once using knife solo.

TODO:

After initialising 4 virtual instances of CentOS 7 on any VM run 'knife solo prepare' from your workstaion on all 4 instances, after that note down the IP adresses of the instances and update them in attributes/default.rb.

Then proceed with the following tasks in order.

  1. Update the runlist on all the generated JSON files under the nodes diretory for each corresponding instances.
  2. Update first instance JSON file with runlist as ["recipe[CDB]","recipe[CDB::pc1]"]
  3. Update second instance JSON file with runlist as ["recipe[CDB]","recipe[CDB::pc2]"]
  4. Update third instance JSON file with runlist as ["recipe[CDB]","recipe[CDB::pc3]","recipe[CDB::master_initialize]"]
  5. Update fourth instance JSON file with runlist as ["recipe[CDB]","recipe[CDB::pc4]"]
  6. Cook recipes in following order:
    1. Instance 1
    2. Instance 2
    3. Instance 3
    4. Instance 4

The main app communicates with MongoDB through the fourth instance. All mongo operation and commands are to be executed through the fouth instance.

cdb's People

Contributors

rushinthjohn 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.