Last active
May 25, 2020 09:22
-
-
Save harryge00/571e8cd09eab1b8e362301bda35c3725 to your computer and use it in GitHub Desktop.
redis master slave
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/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": [] | |
} |
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/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