Skip to content

Latest commit

 

History

History
 
 

provisioning

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

競技用インスタンスのセットアップ方法

webapp

image/ansible以下に入っているplaybookを順番に実行。

$ ansible-playbook -i hosts image/ansible/playbooks.yml --skip-tags nodejs

bench

bench/ansible以下に入っているplaybookを順番に実行。

$ ansible-playbook -i hosts bench/ansible/playbooks.yml

benchmakerを同梱したwebapp

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>

ssh config の例

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