Skip to content

Instantly share code, notes, and snippets.

@jrx
Created October 17, 2017 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrx/f64da34494a6f429b1c0e618fe831b5e to your computer and use it in GitHub Desktop.
Save jrx/f64da34494a6f429b1c0e618fe831b5e to your computer and use it in GitHub Desktop.
{
"id": "/postgresql",
"backoffFactor": 1.15,
"backoffSeconds": 1,
"container": {
"portMappings": [
{
"containerPort": 5432,
"hostPort": 0,
"labels": {
"VIP_0": "/postgresql:5432"
},
"protocol": "tcp",
"servicePort": 10000,
"name": "postgresql"
}
],
"type": "DOCKER",
"volumes": [
{
"persistent": {
"type": "root",
"size": 512,
"constraints": []
},
"mode": "RW",
"containerPath": "pgdata"
}
],
"docker": {
"image": "postgres:9.6",
"forcePullImage": false,
"privileged": false,
"parameters": []
}
},
"cpus": 0.3,
"disk": 0,
"env": {
"POSTGRES_USER": "admin",
"PGDATA": "/mnt/mesos/sandbox/pgdata",
"POSTGRES_DB": "defaultdb",
"POSTGRES_PASSWORD": "password"
},
"healthChecks": [
{
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"portIndex": 0,
"timeoutSeconds": 20,
"delaySeconds": 15,
"protocol": "TCP"
}
],
"instances": 1,
"labels": {
"MARATHON_SINGLE_INSTANCE_APP": "true"
},
"maxLaunchDelaySeconds": 3600,
"mem": 512,
"gpus": 0,
"networks": [
{
"mode": "container/bridge"
}
],
"residency": {
"relaunchEscalationTimeoutSeconds": 3600,
"taskLostBehavior": "WAIT_FOREVER"
},
"requirePorts": false,
"upgradeStrategy": {
"maximumOverCapacity": 0,
"minimumHealthCapacity": 0
},
"killSelection": "YOUNGEST_FIRST",
"unreachableStrategy": "disabled",
"fetch": [],
"constraints": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment