mdevilliers / docker-rediscluster Goto Github PK
View Code? Open in Web Editor NEWDocker script to set up a disposable redis cluster for testing sentinel failover.
Docker script to set up a disposable redis cluster for testing sentinel failover.
Currently the cluster is fixed at 6 nodes, 3 master with each one slave. This configuration should should be dynamic and allow for change to possibly test different scenarios.
Hi.
when i run de script to start the cluster i dont get the docker host ip
DOCKER_IP=$(ifconfig docker0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
echo "DOCKER IP : $DOCKER_IP"
and after sometime the process fail. so i found the problem was the DOCKER_IP
variable and i have to change it to this
DOCKER_IP=$(ifconfig docker0 | grep 'inet end.:' | cut -d: -f2 | awk '{ print $1}')
so if anyone facing the same problem provably here you have solution
In the script, you find the docker host ip with the ifconfig docker0
trick. What is that doing? There's no such interface when using boot2docker on osx. That's ok, I'm just wondering if I can workaround it but I don't know what docker0's purpose is. I didn't know the host IP was significant in docker. On Linux, is an IP created and then your script uses that IP to identify hosts?
Maybe this is a neat trick to connect machines because that's sort of tricky with docker (why compose was built)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.