GithubHelp home page GithubHelp logo

dcos-node-replacement's Introduction

README

FOSSA Status

This repository contains scripts to perform a node replacement on a DC/OS cluster. It uses the dcos CLI tool to communicate with a DC/OS cluster and the aws CLI tool to communicate with AWS. It's assumed that AWS credentials have already been fetched or this is running on an instance with an instance profile capable of performing the EC2 actions.

Quick Start

It's not required to export username and password, unless you want to run without interaction.

export DCOS_USERNAME=<username>
export DCOS_PASSWORD=<password>

./dcos_cluster_setup.sh <master_url>
./runner

Order

Sanity

  • dcos_sanity_check zookeeper returns 0
  • dcos_sanity_check leader returns 0

Preparation

  • Run core-infrastructure
  • dcos_backup.sh to start backup (wait for it to complete)

Masters

  • Remove 1 non-leader master
    • dcos_sanity_check.sh cockroachdb return 0
    • dcos_sanity_check.sh master_snapshot return 0
  • Remove another non-leader master
    • dcos_sanity_check.sh cockroachdb return 0
    • dcos_sanity_check.sh master_snapshot return 0
  • Remove former leader
    • dcos_sanity_check.sh cockroachdb return 0
    • dcos_sanity_check.sh master_snapshot return 0

Agents

  • Get zone list from dcos_cluster_zones.sh

Per-zone

  • Get agent IPs: dcos_agents_by_zone.sh <zone>
  • For each IP: aws_terminate.sh
  • Wait for agents up using dcos_agents_by_zone.sh <zone>

License

FOSSA Status

dcos-node-replacement's People

Contributors

fossabot avatar wolf31o2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

raghu999 fossabot

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.