Skip to content

Instantly share code, notes, and snippets.

@tyabu12
Last active July 27, 2019 05:21
Show Gist options
  • Save tyabu12/f90aa07f2915644052eff1ded6cb7286 to your computer and use it in GitHub Desktop.
Save tyabu12/f90aa07f2915644052eff1ded6cb7286 to your computer and use it in GitHub Desktop.
ISUCON 8予選の vagrant からベンチ投げるスクリプト
#!/bin/bash
# 初回のみ
git clone --depth 1 https://github.com/matsuu/vagrant-isucon
cd vagrant-isucon/isucon8-qualifier
vagrant up bench
# ホストアドレスをカンマ区切りで指定
IMAGE_HOST_IP="XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX"
vagrant ssh bench -c "sudo -i -u isucon sh -c 'cd torb/bench; bin/bench -remotes $IMAGE_HOST_IP'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment