Last active
November 21, 2018 20:29
-
-
Save johanrhodin/68bf230ee348416ba15cd99d31d57a17 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# Creates 400 vhosts | |
# Related to https://github.com/rabbitmq/rabbitmq-server/pull/1770 & https://groups.google.com/d/msg/rabbitmq-users/ZbTNp6YqZeo/53JLiy2zAQAJ | |
# Clean up with rabbitmqctl eval '[garbage_collect(P) || P <- processes()].' | |
# To see this behavior (for a longer time) in 3.7.9 you need to turn off background_gc_enbaled: {background_gc_enabled, false} in rabbitmq.config | |
for i in `seq 1 400`; | |
do | |
echo $i | |
curl -u user:passwd -H "content-type:application/json" -XPUT https://yourserver.rmq.cloudamqp.com/api/vhosts/vhost$i | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment