Coder Social home page Coder Social logo

marathon-daemonset's Introduction

marathon-daemonset

Handles updating Marathon app instances to match the number of Mesos Agents or to match the number of Mesos Agents which have matching attribute key/value pairs.

Example env vars:

DAEMONSET_DRYRUN=true 
DAEMONSET_MESOSHOST=http://master.mesos:5050 
DAEMONSET_MARATHONHOST=http://marathon.mesos:8080
DAEMONSET_SERVERPORT=1234
DAEMONSET_DEBUG=true
DAEMONSET_UPDATEFREQUENCY=1m30s

update-frequency is the time in seconds between process runs.

Example Marathon labels:

# Make sure there are the same number of instances as there are mesos agents.
"daemonset": "all"

# Make sure there are the same number of instances as there are mesos agents 
# with an attribute pair of tier=private.
"daemonset": "tier|private"

# Make sure there are the same number of instances as there are mesos agents 
# with an attribute pair of az=a.
"daemonset": "az|a"

# Make sure there are the same number of instances as there are mesos agents 
# with an attribute pair of tier=private or tier=public or tier=badgers.
"daemonset": "tier|private,tier|public,tier|badgers"

Running the app

DAEMONSET_DRYRUN=true DAEMONSET_MESOSHOST=http://master.mesos:5050 DAEMONSET_MARATHONHOST=http://marathon.mesos:8080 marathon-daemonset

Marathon constraint to handle multiple tiers

hostname:UNIQUE
tier:LIKE:(prometheus|public|badgers)

marathon-daemonset's People

Contributors

greyrhino avatar nm-harry 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.