Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 11, 2020 09:11
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 velotiotech/13fa86a37a02bc92f4724c8d439b6e89 to your computer and use it in GitHub Desktop.
Save velotiotech/13fa86a37a02bc92f4724c8d439b6e89 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