Created
March 21, 2014 15:40
-
-
Save mattsta/9689026 to your computer and use it in GitHub Desktop.
Solaris 11 Redis Cluster Bring-Up
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
# Bring in dependencies if needed: | |
sudo pkg install ruby | |
sudo gem install redis | |
# Start 9 servers on 127.0.0.1 and 9 servers on net0's IP address | |
cd redis/src | |
for dir in {1..9}; do mkdir $dir; pushd $dir; rm -f *.conf *.rdb; ../redis-server --bind 127.0.0.1 --cluster-enabled yes --port 700$dir & popd; done | |
IP=`/sbin/ifconfig net0 |grep inet |awk '{printf $2}'` | |
for dir in {21..29}; do mkdir $dir; pushd $dir; rm -f *.conf *.rdb; ../redis-server --bind $IP --cluster-enabled yes --port 70$dir & popd; done | |
# Try to bring up the cluster with one replica each | |
./redis-trib.rb create --replicas 1 127.0.0.1:{7001..7009} $IP:{7021..7029} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment