Created
March 1, 2023 09:21
-
-
Save kawing-ho/521ac265ce763fb8bf4913df41095479 to your computer and use it in GitHub Desktop.
Spawn 100 boxes, 10 for each region, change prefix to whatever as needed
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
#!/bin/bash | |
# sleep time between box spawn | |
#SLEEP=1 #debug lol | |
SLEEP=60 | |
# spawn 100 instances, 10 in each region | |
for region in nyc1 nyc3 ams3 sfo3 sgp1 lon1 fra1 tor1 blr1 syd1 | |
do | |
echo "" && echo "[Spawning 10 boxes in $region]" && echo "" | |
axiom-fleet "z-${region}_" -i 10 -r "$region" | |
echo "" | |
echo "[Resting for $SLEEP seconds]" && sleep $SLEEP | |
done | |
echo "[Completed all boxes -- resting again for $SLEEP seconds...]" && echo "" | |
sleep $SLEEP | |
echo "[Shutting down all boxes]" && echo "" | |
axiom-power off "z-*" | |
echo "" && ">>>>>Status of all boxes:" | |
axiom-ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment