Skip to content

Instantly share code, notes, and snippets.

@linben
Created January 19, 2016 23:12
Show Gist options
  • Save linben/7a4ef909e5ac14e85206 to your computer and use it in GitHub Desktop.
Save linben/7a4ef909e5ac14e85206 to your computer and use it in GitHub Desktop.
{
"id": "python-upgrade",
"cmd": "sleep 5 && python -m http.server $PORT0",
"container": {
"type": "DOCKER",
"docker": {
"image": "python:3.5",
"network": "HOST",
"forcePullImage":true
}
},
"instances": 20,
"cpus": 0.1,
"mem": 64,
"healthChecks": [{
"protocol": "HTTP",
"path": "/",
"portIndex": 0,
"timeoutSeconds": 10,
"gracePeriodSeconds": 10,
"intervalSeconds": 2,
"maxConsecutiveFailures": 10
}],
"upgradeStrategy": {
"minimumHealthCapacity": 0.85,
"maximumOverCapacity": 0.15
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment