GithubHelp home page GithubHelp logo

isabella232 / etcd-quorum-guard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openshift/etcd-quorum-guard

0.0 0.0 0.0 12.1 MB

Ensure that a quorum for etcd is maintained at all times by not allowing a master to leave if it would result in quorum being lost.

License: Apache License 2.0

Dockerfile 2.28% Makefile 16.78% Go 80.94%

etcd-quorum-guard's Introduction

etcd Quorum Guard

NOTE: This repository is not the source of the etcd quorum guard; that has been moved to the machine config operator. This repository is present for reference only.

The etcd Quorum Guard ensures that quorum is maintained for etcd for OpenShift.

For the etcd cluster to remain usable, we must maintain quorum, which is a majority of all etcd members. For example, an etcd cluster with 3 members (i.e. a 3 master deployment) must have at least 2 healthy etcd member to meet the quorum limit.

There are situations where 2 etcd members could be down at once:

  • a master has gone offline and the MachineConfig Controller (MCC) tries to rollout a new MachineConfig (MC) by rebooting masters
  • the MCC is doing a MachineConfig rollout and doesn't wait for the etcd on the previous master to become healthy again before rebooting the next master

In short, we need a way to ensure that a drain on a master is not allowed to proceed if the reboot of the master would cause etcd quorum loss.

The etcd quorum guard is implemented as a deployment, with one pod per master node.

The etcd quorum guard checks the health of etcd by querying the health endpoint of etcd; if etcd reports itself unhealthy or is not present, the quorum guard reports itself not ready. A disruption budget is used to allow no more than one unhealthy/missing quorum guard (and hence etcd). If one etcd is already not healthy or missing, this disruption budget will act as a drain gate, not allowing an attempt to drain another node.

This drain gate cannot protect against a second node failing due to e. g. hardware failure; it can only protect against an attempt to drain the node in preparation for taking it down.

There is no user or administrator action necessary or available for the etcd Quorum Guard.

etcd-quorum-guard's People

Contributors

openshift-merge-robot avatar robertkrawitz avatar sjenning avatar sosiouxme avatar thrasher-redhat 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.