Skip to content

Instantly share code, notes, and snippets.

@pkazi
Created March 19, 2019 12:01
Show Gist options
  • Save pkazi/0aaf787b282e958d6d481c717fd3f64e to your computer and use it in GitHub Desktop.
Save pkazi/0aaf787b282e958d6d481c717fd3f64e to your computer and use it in GitHub Desktop.
{
"id": "/redis4.0-new-failover-test",
"instances": 1,
"cpus": 1.001,
"mem": 2,
"disk": 0,
"gpus": 0,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"type": "DOCKER",
"volumes": [
{
"containerPath": "/data",
"mode": "RW",
"external": {
"name": "redis4volume",
"provider": "dvdi",
"options": {
"dvdi/driver": "rexray"
}
}
}
],
"docker": {
"image": "redis:4",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 6379,
"hostPort": 0,
"servicePort": 10101,
"protocol": "tcp",
"name": "default",
"labels": {
"VIP_0": "/redis4.0:6379"
}
}
],
"privileged": false,
"forcePullImage": false
}
},
"healthChecks": [
{
"gracePeriodSeconds": 60,
"intervalSeconds": 5,
"timeoutSeconds": 5,
"maxConsecutiveFailures": 3,
"portIndex": 0,
"protocol": "TCP"
}
],
"upgradeStrategy": {
"minimumHealthCapacity": 0.5,
"maximumOverCapacity": 0
},
"unreachableStrategy": {
"inactiveAfterSeconds": 300,
"expungeAfterSeconds": 600
},
"killSelection": "YOUNGEST_FIRST",
"requirePorts": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment