All Projects → alanbover → deathnode

alanbover / deathnode

Licence: MIT license
Gracefully kill Mesos nodes in AWS for autoscaling and inmutable deployments

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to deathnode

Waiter
Runs, manages, and autoscales web services on Mesos and Kubernetes
Stars: ✭ 65 (+282.35%)
Mutual labels:  mesos, autoscaling
rhythm
Time-based job scheduler for Apache Mesos
Stars: ✭ 30 (+76.47%)
Mutual labels:  mesos
ecs-autoscale
A framework that runs on AWS Lambda for autoscaling ECS clusters and services
Stars: ✭ 69 (+305.88%)
Mutual labels:  autoscaling
ecs-mesh-workshop
This handy workshop help the customers to quickly launch ECS with service mesh support on top of mixed type of instance in all commercial regions (include China), and also provides hands-on tutorials with best practices. It can be customized easily as per need.
Stars: ✭ 17 (+0%)
Mutual labels:  autoscaling
dockerfiles
Multi docker container images for main Big Data Tools. (Hadoop, Spark, Kafka, HBase, Cassandra, Zookeeper, Zeppelin, Drill, Flink, Hive, Hue, Mesos, ... )
Stars: ✭ 29 (+70.59%)
Mutual labels:  mesos
microservices-demo.github.io
The Microservices Demo website.
Stars: ✭ 65 (+282.35%)
Mutual labels:  mesos
kubernetes-vmware-autoscaler
Kubernetes autoscaler for vsphere
Stars: ✭ 33 (+94.12%)
Mutual labels:  autoscaling
sbt-marathon
An sbt plugin for launching application containers on the Mesosphere Marathon platform.
Stars: ✭ 23 (+35.29%)
Mutual labels:  mesos
resty-marathon-lb
基于 OpenResty 的 Marathon 服务发现 & 路由
Stars: ✭ 13 (-23.53%)
Mutual labels:  mesos
marathon-slack
Integration for Marathon's Event Bus with Slack
Stars: ✭ 42 (+147.06%)
Mutual labels:  mesos
micro-service-practice
OpenStack+Docker+RestAPI+OAuth/HMAC+RabbitMQ/ZMQ+OpenResty/HAProxy/Nginx/APIGateway+Bootstrap/AngularJS+Ansible+K8S/Mesos/Marathon构建/探索微服务最佳实践。
Stars: ✭ 25 (+47.06%)
Mutual labels:  mesos
hostnic-cni
hostnic-cni is a Container Network Interface plugin.
Stars: ✭ 25 (+47.06%)
Mutual labels:  mesos
spring-cloud-marathon
Spring Cloud integration with Mesos and Marathon
Stars: ✭ 29 (+70.59%)
Mutual labels:  mesos
scheduler
Maintenance fork of Apache Aurora's Scheduler
Stars: ✭ 21 (+23.53%)
Mutual labels:  mesos
consul-registration-hook
Hook that can be used for synchronous registration and deregistration in Consul discovery service on Kubernetes or Mesos cluster with Allegro executor
Stars: ✭ 17 (+0%)
Mutual labels:  mesos
mesos-external-container-logger
Mesos container logger module for logging to processes, backported from MESOS-6003
Stars: ✭ 14 (-17.65%)
Mutual labels:  mesos
aws-autoscaling-gitlab-runner
CloudFormation template to deploy a GitLab Runner with auto-scaling on AWS.
Stars: ✭ 44 (+158.82%)
Mutual labels:  autoscaling
docker-kube-amqp-autoscale
Dynamically scale kubernetes resources using length of an AMQP queue
Stars: ✭ 29 (+70.59%)
Mutual labels:  autoscaling
faythe
An experimental cluster brings Prometheus and OpenStack together
Stars: ✭ 18 (+5.88%)
Mutual labels:  autoscaling
bitbucket-to-aws
How to deploy a Laravel app from Bitbucket to autoscaled instances at AWS.
Stars: ✭ 14 (-17.65%)
Mutual labels:  autoscaling

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

Constraints

When removing an instance, contraints are used by deathnode to filter which instances are not able to be picked up as candidates (best efford). Multiple contraints can be specified.

  • noContraint: Applies no constraints
  • protectedConstraint: Do not pick instances that has tasks from protected frameworks
  • filterFrameworkConstraint: Do not pick instances that has tasks from the specified framework
  • taskNameRegexpConstraint: Do not pick instances that has tasks that it's name match a certain regexp

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].