deathnode

command module
v0.0.0-...-d6eb901 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2017 License: MIT Imports: 7 Imported by: 0

README

Deathnode

Build Status Go Report Card Coverage Status

Purpose

Gracefully Mesos agent destroy system for AWS Autoscaling.

Deathnode ensures that agents from an Autoscaling group in AWS are destroyed only after they have being drained, allowing to implement scale-in or red/black deployments with no impact to the customers.

It's implementation is based using:

How does it do it?

Deathnode monitors the autoscaling groups from the Mesos Agents. Whenever it detects that one instance from an autoscaling group should be removed, it will:

  • Find the best agent to be killed
  • Tag the instance as being deleted
  • Remove instance protection from the instance
  • Set the instance in maintenance mode

Then deathnode will keep monitoring this agent, completing destroy lifecycle once it's drained.

Usage

Here you can find an example of usage:

./deathnode -autoscalingGroupName ${ASG_NAME} -delayDelete 300 -mesosUrl ${MESOS_URL} -polling 60 -protectedFrameworks Eremetic -debug

Build

To execute the test, run:

make test

To build the app, run:

make build

To build a docker image, run:

DOCKERTAG="version" make docker

Limitations

  • Most of the Mesos frameworks doesn't implement Maintenance primitives.
  • Maintenance primitives are not available through Mesos native integration

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL