Last active
August 29, 2015 13:56
-
-
Save squaremo/9217649 to your computer and use it in GitHub Desktop.
Single-host clustering
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
NODE=rabbit$1 | |
shift 1 | |
rabbitmqctl -n "$NODE@$(hostname -s)" $* |
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
NODE=rabbit$1 | |
shift 1 | |
export RABBITMQ_ENABLED_PLUGINS_FILE=$NODE/plugins | |
mkdir -p $NODE | |
rabbitmq-plugins $* |
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
NUM=$1 | |
NODE=rabbit$NUM | |
export RABBITMQ_NODENAME=$NODE | |
export RABBITMQ_LOG_BASE=`pwd`/$NODE | |
export RABBITMQ_MNESIA_BASE=`pwd`/$NODE | |
export RABBITMQ_NODE_PORT=$((25670 + $NUM)) | |
export RABBITMQ_CONFIG_FILE=`pwd`/rabbit | |
export RABBITMQ_ENABLED_PLUGINS_FILE=`pwd`/$NODE/plugins | |
MGMT_PORT=$((15670 + $NUM)) | |
MGMT_ARG="-rabbitmq_management listener [{port,"$MGMT_PORT"}]" | |
export RABBITMQ_SERVER_START_ARGS="$MGMT_ARG" | |
mkdir -p $NODE | |
rabbitmq-server & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment