isucon / isucon11-qualify

ISUCON11 予選 (ISUCONDITION)
https://isucon.net/archives/55821036.html
MIT License
166 stars 83 forks source link

feat(infra) jiaapi-mock の auth の全競技者共通化 #1317

Closed ShotaKitazawa closed 3 years ago

ShotaKitazawa commented 3 years ago

やったこと

対応issue

セルフチェック

備考

ShotaKitazawa commented 3 years ago

競技者ほとんどがせーので5回ずつアクセスした場合の負荷 → まあ大丈夫そう

# ab -n 5000 -c 1000  https://jia-auth.xi.isucon.dev/
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking jia-auth.xi.isucon.dev (be patient)
Completed 500 requests
Completed 1000 requests
Completed 1500 requests
Completed 2000 requests
Completed 2500 requests
Completed 3000 requests
Completed 3500 requests
Completed 4000 requests
Completed 4500 requests
Completed 5000 requests
Finished 5000 requests

Server Software:
Server Hostname:        jia-auth.xi.isucon.dev
Server Port:            443
SSL/TLS Protocol:       TLSv1.2,ECDHE-RSA-AES128-GCM-SHA256,2048,128
Server Temp Key:        ECDH P-256 256 bits
TLS Server Name:        jia-auth.xi.isucon.dev

Document Path:          /
Document Length:        1532 bytes

Concurrency Level:      1000
Time taken for tests:   8.417 seconds
Complete requests:      5000
Failed requests:        0
Total transferred:      8345000 bytes
HTML transferred:       7660000 bytes
Requests per second:    594.04 [#/sec] (mean)
Time per request:       1683.399 [ms] (mean)
Time per request:       1.683 [ms] (mean, across all concurrent requests)
Transfer rate:          968.21 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        3  844 731.7    452    6533
Processing:     3   81 145.1     14    1386
Waiting:        1   81 145.1     13    1386
Total:         41  925 781.2    465    6545

Percentage of the requests served within a certain time (ms)
  50%    465
  66%    886
  75%   1526
  80%   1580
  90%   1670
  95%   1886
  98%   3490
  99%   4299
 100%   6545 (longest request)
ShotaKitazawa commented 3 years ago

レビュー用に、 provisioning/terraform-bench 以下で make apply を実行し各リソースをデプロイ済みです。

ShotaKitazawa commented 3 years ago

cloud watch で外形監視するためのリソースを作るのを忘れてました、 上からコミットを積む 別 PR で作成する (issue: #1349) のでひとまずそれがない前提でレビューをお願いしたいです🙇‍♂️

ShotaKitazawa commented 3 years ago

同じ PR で当日 bench 展開用 terraform のディレクトリ構成の変更まで混ぜてしまってます。

ECS の更新周りは 44fc145 になるので、 ECS のレビューのみであればこのコミットのみ見てもらえればと思ってます🙏