image/ansible以下に入っているplaybookを順番に実行。
$ ansible-playbook -i hosts image/ansible/playbooks.yml --skip-tags nodejs
bench/ansible以下に入っているplaybookを順番に実行。
$ ansible-playbook -i hosts bench/ansible/playbooks.yml
webappとbenchmaker両方含むall in oneなインスタンスをセットアップする場合
$ ansible-playbook -i hosts image/ansible/playbooks.yml --skip-tags nodejs -e 'allinone=True'
同梱したbenchmarkerを動作させるには以下のようにします。
$ sudo su - isucon
$ /home/isucon/private_isu/benchmarker/bin/benchmarker -u /home/isucon/private_isu/benchmarker/userdata -t http://<target IP>
Host isu-app
IdentityFile ~/.ssh/xxx.pem
HostName xxx.xxx.xxx.xxx
User ubuntu
Host isu-bench
IdentityFile ~/.ssh/xxx.pem
HostName xxx.xxx.xxx.xxx
User ubuntu