Skip to content

Instantly share code, notes, and snippets.

@harryge00
Last active May 25, 2020 09:22
Show Gist options
  • Save harryge00/571e8cd09eab1b8e362301bda35c3725 to your computer and use it in GitHub Desktop.
Save harryge00/571e8cd09eab1b8e362301bda35c3725 to your computer and use it in GitHub Desktop.
redis master slave
{
"id": "/test/master",
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "ccr.ccs.tencentyun.com/faw-d2iq/redis:5.0.5"
},
"portMappings": [
{
"containerPort": 6379,
"labels": {
"VIP_0": "/test/master:6379"
},
"name": "client"
}
]
},
"cpus": 0.1,
"mem": 128,
"requirePorts": false,
"networks": [
{
"mode": "container",
"name": "dcos"
}
],
"healthChecks": [],
"fetch": [],
"constraints": []
}
{
"id": "/test/slave",
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "ccr.ccs.tencentyun.com/faw-d2iq/redis:5.0.5"
},
"portMappings": [
{
"containerPort": 6379,
"labels": {
"VIP_0": "/test/slave:6379"
},
"name": "client"
}
]
},
"cpus": 0.1,
"mem": 128,
"requirePorts": false,
"networks": [
{
"mode": "container",
"name": "dcos"
}
],
"healthChecks": [],
"fetch": [],
"constraints": [],
"env": {
"SLAVE_OF": "testmaster.marathon.l4lb.thisdcos.directory 6379"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment