Last active
June 28, 2016 14:49
-
-
Save maauso/effac944366374cac56a21eff96557a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "/test/ha/nginx/nginx", | |
"cmd": null, | |
"cpus": 0.1, | |
"mem": 32, | |
"disk": 0, | |
"instances": 1, | |
"container": { | |
"type": "DOCKER", | |
"volumes": [], | |
"docker": { | |
"image": "nginx", | |
"network": "BRIDGE", | |
"portMappings": [ | |
{ | |
"containerPort": 80, | |
"hostPort": 0, | |
"servicePort": 0, | |
"protocol": "tcp", | |
"labels": {} | |
} | |
], | |
"privileged": false, | |
"parameters": [], | |
"forcePullImage": false | |
} | |
}, | |
"env": { | |
"SERVICE_NAME": "nginx-ha", | |
"SERVICE_80_CHECK_TCP": "true", | |
"SERVICE_80_CHECK_INTERVAL": "15s", | |
"SERVICE_80_CHECK_TIMEOUT": "3s" | |
}, | |
"healthChecks": [ | |
{ | |
"protocol": "TCP", | |
"portIndex": 0, | |
"gracePeriodSeconds": 300, | |
"intervalSeconds": 60, | |
"timeoutSeconds": 20, | |
"maxConsecutiveFailures": 0, | |
"ignoreHttp1xx": false | |
} | |
], | |
"labels": { | |
"HAPROXY_BACKEND_WEIGHT": "1", | |
"HAPROXY_MODE": "http", | |
"HAPROXY_BALANCE": "roundrobin", | |
"HAPROXY_GROUP": "test", | |
"HAPROXY_BACKEND_STICKY_OPTIONS" : "cookie nginx_using_marathon_lb insert indirect nocache\n", | |
"HAPROXY_VHOST": "miguel.haproxy.com" | |
}, | |
"portDefinitions": [ | |
{ | |
"port": 0, | |
"protocol": "tcp", | |
"labels": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment