Skip to content
その都度ガンバる
TypeScript Go Shell TSQL JavaScript HTML Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
etc
logs update access log - 12:06 Sep 8, 2019
scripts
tools/measure_helper feat: add measure Sep 8, 2019
webapp Revert "Swap order" Sep 8, 2019
.gitignore chore: woo Sep 7, 2019
README.md chore: add git pull to restart.sh Sep 8, 2019
initialize.json Add initialize.json Sep 8, 2019
memo.txt feat: add measure Sep 8, 2019

README.md

Ya-Ha!

File Structure

  • /etc - conf files
  • /logs - access logs
  • /scripts - scripts
  • ...

Instruction

  1. @everyone put shared keys as ~/.ssh/isu9q and ~/.ssh/isu9q.pub
  • Add private keys in $HOME/home/isucon/.ssh/authorized_keys for isucon user.
  1. @karszawa copies ssh keys to servers
./scripts/init/add-ssh 150.95.190.130 163.44.170.175 150.95.152.119
  1. @everyone paste the script below to ~/.ssh/config with correct ip addresses
Host isu9q-01
  HostName 47.74.23.150
  User isucon
  Port 22
  IdentityFile ~/.ssh/isu9q

Host isu9q-02
  HostName 47.74.10.186
  User isucon
  Port 22
  IdentityFile ~/.ssh/isu9q

Host isu9q-03
  HostName 47.74.18.113
  User isucon
  Port 22
  IdentityFile ~/.ssh/isu9q
  1. @everyone run bench

  2. @everyone see application

  3. @karszawa setup git

cd scripts
./git-master.sh isu9q-01
./git-slave.sh isu9q-02 service-name
./git-slave.sh isu9q-03 service-name
  1. @karszawa move middleware config files to git repository and create symbolic links
cd scripts
./ln-master.sh isu9q-01 service-name
./ln-slave.sh isu9q-02 service-name
./ln-slave.sh isu9q-03 service-name
You can’t perform that action at this time.