Last active
February 19, 2018 17:41
-
-
Save lukebakken/7459fbb4fcbfa1062198c36ca0d8fd41 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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
declare -r user='guest' | |
declare -r pass='guest' | |
declare -i i=0 | |
set +o errexit | |
for (( i=1; i < 9; i++ )) | |
do | |
rabbitmqadmin -u "$user" -p "$pass" delete queue name="queue$i" & | |
done | |
wait |
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
queue_master_locator = min-masters |
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
declare -r user='guest' | |
declare -r pass='guest' | |
declare -i i=0 | |
rabbitmqadmin -u "$user" -p "$pass" declare exchange name='exchange1' type='topic' | |
rabbitmqadmin -u "$user" -p "$pass" declare queue name='queue1' arguments='{"exclusive":true}' | |
for (( i=1; i < 7; i++ )) | |
do | |
rabbitmqadmin -u "$user" -p "$pass" declare binding source='exchange1' destination='queue1' routing_key="test.$i" | |
done | |
for (( i=2; i < 9; i++ )) | |
do | |
rabbitmqadmin -u "$user" -p "$pass" declare queue name="queue$i" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment