Code Monkey home page Code Monkey logo

couchbase-array's Introduction

Couchbase-array

Concept

Couchbase Node

The Couchbase Node is responsible for starting up an instance of Couchbase server. In addition it is responsible for registering it's self as available for clustering

  • Each cluster node is disposable when replication at a bucket level is enabled
  • Each cluster node runs a disposable docker container activated by a global Fleet Systemd Unit on CoreOS
  • Every time the systemd unit recylces
    1. Removes an existing labels associated within it from a backend store (e.g. etcd)
    2. Starts the couchbase docker container.
    3. Writes a label registering it's self with the backend store for initialization

Scheduler

The scheduler is responsible for keeping the cluster balanced. Rebalancing the cluster as new cluster node are detected. Rebalancing when cluster nodes are no longer detected.

  • The scheduler runs a loop monitoring\capturing the current state of the cluster
  • The scheduler schedules actions upon detection of differences between current state and the previous state in the hope of realizing a cluster desired state

Enforcer

The enforcer is responsible for transitioning cluster nodes to become initialized and rebalancing the cluster

  • The enforcer connects to new nodes issuing node initialization requests
  • The enforcer connects to active nodes and issues rebalance requests

Approach

In line with the Unix philosophy a number of existing components will be attempted to be reused to achieve this goal.

  • Couchbase Node (Dockerfile)
  • Scheduler (Confd + Util)
  • Enforcer (Couchbase-init)

couchbase-array's People

Contributors

andrewwebber avatar

Watchers

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