Created
February 7, 2020 21:51
-
-
Save Smithx10/d2f8595f401d3188a8573d197181831a 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
#two instances must be on the same CN | |
# start ubuntu 18.04 bhve vm | |
wget https://github.com/m3ng9i/ran/releases/download/v0.1.4/ran_linux_amd64.zip | |
sudo apt-get install unzip | |
unzip ran_linux_amd64.zip | |
fallocate -l 1G 1G | |
# start http server in bhyve | |
ubuntu@6dfb4cea-dd08-49d8-811e-4de35157555b:~/jeff$ ./ran_linux_amd64 -l | |
2020-02-07 21:50:27.276874 INFO: System: Ran is running on HTTP port 8080 | |
2020-02-07 21:50:27.277317 INFO: System: Listening on http://127.0.0.1:8080 | |
2020-02-07 21:50:27.277325 INFO: System: Listening on http://10.91.193.32:8080 | |
# start a smartos zone | |
[root@pgbouncer-prod-00 /jeff]# cat jeff.sh | |
#!/bin/bash | |
date | |
for i in {1..5};do | |
curl -sL http://10.91.193.32:8080/1G > /dev/null & | |
done | |
wait | |
date | |
./jeff.sh | |
Watch the fireworks. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My version: