Skip to content

How to access this cluster from another container running memtier_benchmark? #131

Discussion options

You must be logged in to vote

Thanks! Actually I’m not doing any benchmarking at all! I’m simply using memtier_benchmark as a client to put some data in the system. My real goal is to use the subsequent cluster as a platform against which to test a metrics gathering client.

I solved the problem:

My script builds a network with a known subnet, allocates a specific address to the cluster and then (after sleeping a little), connects from the memtier_benchmark container.

NET=redisClusterNet
RC=redis_cluster
MC=memtier_benchmark
SUBNET=192.168.0.0/16
GATEWAY=192.168.0.1
IP=192.168.0.10
PORT=7000
docker network create --driver=bridge --subnet=${SUBNET:?} --gateway=${GATEWAY:?} ${NET:?} 
docker run --rm -d --name ${RC:?} -e …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Grokzen
Comment options

Answer selected by Grokzen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants