Created
July 10, 2023 10:39
-
-
Save sandeep540/ad1a31d6d2187b09ef7bc92a0196fea7 to your computer and use it in GitHub Desktop.
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
version: '3.8' | |
services: | |
dragonfly1: | |
image: 'docker.dragonflydb.io/dragonflydb/dragonfly' | |
ulimits: | |
memlock: -1 | |
command: | |
- "--memcache_port" | |
- "11211" | |
ports: | |
- 11212:11211 | |
volumes: | |
- dragonflydata1:/data | |
dragonfly2: | |
image: 'docker.dragonflydb.io/dragonflydb/dragonfly' | |
ulimits: | |
memlock: -1 | |
command: | |
- "--memcache_port" | |
- "11211" | |
ports: | |
- 11213:11211 | |
volumes: | |
- dragonflydata2:/data | |
dragonfly3: | |
image: 'docker.dragonflydb.io/dragonflydb/dragonfly' | |
ulimits: | |
memlock: -1 | |
command: | |
- "--memcache_port" | |
- "11211" | |
ports: | |
- 11214:11211 | |
volumes: | |
- dragonflydata3:/data | |
mcrouter: | |
image: studiosol/mcrouter:v0.19.0 | |
platform: linux/amd64 | |
links: | |
- dragonfly1:dragonfly1 | |
- dragonfly2:dragonfly2 | |
- dragonfly3:dragonfly3 | |
command: mcrouter --config-str='{"pools":{"A":{"servers":["dragonfly1:11211", "dragonfly2:11211", "dragonfly3:11211"]}},"route":{"type":"OperationSelectorRoute","operation_policies":{"add":"AllFastestRoute|Pool|A","delete":"AllFastestRoute|Pool|A","get":"AllFastestRoute|Pool|A","set":"AllFastestRoute|Pool|A"}}}' -p 11211 | |
ports: | |
- 11211:11211 | |
volumes: | |
dragonflydata1: | |
dragonflydata2: | |
dragonflydata3: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment