Skip to content

Instantly share code, notes, and snippets.

@tyabu12
Last active July 15, 2019 01:23
Show Gist options
  • Save tyabu12/56befa8498153e59fd0806e5cd5a3ac1 to your computer and use it in GitHub Desktop.
Save tyabu12/56befa8498153e59fd0806e5cd5a3ac1 to your computer and use it in GitHub Desktop.
ISUCON7 予選 で vagrant からベンチ投げるスクリプト
#!/bin/bash
# 初回のみ
git clone --depth 1 https://github.com/matsuu/vagrant-isucon
cd vagrant-isucon/isucon7-qualifier
vagrant up bench
# ホストアドレスをカンマ区切りで指定
IMAGE_HOST_IP="XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX"
vagrant ssh bench -c "sudo -u isucon sh -c 'cd /home/isucon/isubata/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