x-motemen/isucon11-qualifier

作業ログ

motemen opened this issue · 8 comments

作業ログ

.ssh/config

Host isu01
  User isucon
  Hostname 35.76.23.211

Host isu02
  User isucon
  Hostname 35.73.159.202

Host isu03
  User isucon
  Hostname 35.74.221.161

これでよろしく

Mariadb 外部接続できるようにする

MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'isucon'@'%' IDENTIFIED BY 'isucon' WITH GRANT OPTION;

これ書くサーバで

  • isu01 nginx, app
  • isu02 app
  • isu03 db, あと app の /initialize のみ
    という担当で

スローログ

isu03

MariaDB [(none)]> SET GLOBAL slow_query_log_file = '/tmp/mysql-slow.log'
    -> ;
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> SET GLOBAL long_query_time = 0;
Query OK, 0 rows affected (0.000 sec)

MariaDB [(none)]> SET GLOBAL slow_query_log = ON;
Query OK, 0 rows affected (0.002 sec)

こういう感じ

alp ltsv --file /var/log/nginx/access_log.ltsv -m '/api/condition/.*,/api/isu/[^/]*/icon,/api/isu/[^/]*/graph,/api/isu/[^/]*$,/isu/[^/]*/condition,/isu/[^/]*/graph,/isu/[^/]*$,/assets/.*' --sort sum --reverse

pt-query-digest #4 (comment)

dropProbaility まわりをコメントアウトしてまわしたジョブ

https://portal.isucon.net/contestant/benchmark_jobs/5526