Skip to content

Instantly share code, notes, and snippets.

@tyabu12
Last active July 15, 2019 01:23
Show Gist options
  • Save tyabu12/50093c87547e2ae0f90712e2b9ff5b94 to your computer and use it in GitHub Desktop.
Save tyabu12/50093c87547e2ae0f90712e2b9ff5b94 to your computer and use it in GitHub Desktop.
pixiv-isucon2016 で vagrant からベンチ投げるスクリプト
#!/bin/bash
# 初回のみ
git clone --depth 1 https://github.com/tyabu12/vagrant-pixiv-isucon2016.git
cd vagrant-pixiv-isucon2016
vagrant up bench
IMAGE_HOST_IP="XXX.XXX.XXX.XXX"
vagrant ssh bench -c "sudo -u isucon sh -c '/opt/go/bin/benchmarker -t http://$IMAGE_HOST_IP -u /opt/go/src/github.com/tyabu12/private-isu/benchmarker/userdata'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment