Sign inSign up

jolexa/mado

By jolexa

•Updated over 10 years ago

Marathon Autoscaling Docker Oneshot

Image
0

4.4K

jolexa/mado repository overview

⁠mado

⁠mado is: Marathon Autoscaling Docker Oneshot, an attempt to autoscale your marathon apps

Docker Pulls

⁠Vision

The vision is to have a Docker image that will run once to autoscale marathon applications.

I envision multiple backends that will be used. The actual scale up and down is a stable interface that should only change if upstream changes API spec.

Backend Support:

BackendStatusEnvironment Token Name
LogicMonitorSupportedlogicmonitor
AWS CloudWatchSupportedcloudwatch
Others????

⁠Running

It should be very easy to run this wherever marathon.mesos resolves to the correct address (requires mesos-dns somewhere). Docker is used to provide a simple interface to run (though, it isn't too complicated if you choose to decompose it)

There are many environment variables in lieu of a config file or parameters to make this as re-usable as possible. They get passed to the Docker runtime. Backend specific variables have a common prefix and can be omitted it not used.

Common:

VariableDescription
BACKEND_SERVICESupporting Services for polling. See key above for support
THRESHOLDThreshold to take action
SCALE_UP_PERCENT(int) Percentage to scale the MARATHON_APP_GROUP
SCALE_DOWN_PERCENT(int) Percentage to scale the MARATHON_APP_GROUP
SCALE_FLOOR(int) (Optional) Lowest desired number of instances in a group
SCALE_CEILING(int) (Optional) Highest desired number of instances in a group
MARATHON_APP_GROUPGroup of apps to scale

LogicMonitor:

VariableDescription
LM_COMPANYLogicMonitor Company
LM_USERLogicMonitor User
LM_PASSLogicMonitor Pass
LM_DATASOURCELogicMonitor Datasource
LM_DATAPOINTLogicMonitor Datapoint
LM_HOSTLogicMonitor Host where datasource is applied

CloudWatch:

VariableDescription
CW_NAMESPACENamespace, allowed values here⁠
CW_METRICMetric Name
CW_DIMENSION_NAMEDimension Name
CW_DIMENSION_VALUEDimension Value
CW_AGGREGATION_TYPEAggregation Type, Supported: "Maximum" or "Average"

⁠Contibutors and Contributions

See contributors

Standard, fork, PR, merge

Feedback welcome and desired!

Tag summary

Content type

Image

Digest

Size

263.8 MB

Last updated

over 10 years ago

docker pull jolexa/mado