From ee8b81e69f67bb09c079915452ea574fa42251fe Mon Sep 17 00:00:00 2001 From: mickamy Date: Tue, 2 Jan 2024 14:54:26 +0900 Subject: [PATCH] =?UTF-8?q?nginx=20=E3=81=AE=E3=83=AD=E3=82=B0=E3=82=92?= =?UTF-8?q?=E6=8D=A8=E3=81=A6=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/config/nginx.conf | 4 +++- note.md | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/admin/config/nginx.conf b/admin/config/nginx.conf index 5611fc66..424864b7 100644 --- a/admin/config/nginx.conf +++ b/admin/config/nginx.conf @@ -10,7 +10,9 @@ http { include /etc/nginx/mime.types; default_type application/octet-stream; - access_log /var/log/nginx/access.log; + # access_log /var/log/nginx/access.log; + access_log off; + error_log /var/log/nginx/error.log; upstream app { diff --git a/note.md b/note.md index e3ed64e4..1cad4056 100644 --- a/note.md +++ b/note.md @@ -363,3 +363,18 @@ docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload 6" 2024/01/02 05:42:41 投票者の感心がなくなりました 2024/01/02 05:42:41 {"score": 22143, "success": 18471, "failure": 0} ``` + +- nginx のログを捨てる 20725 + +``` +❯ make bench +docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload 6" +2024/01/02 05:50:39 Start GET /initialize +2024/01/02 05:50:39 期日前投票を開始します +2024/01/02 05:50:41 期日前投票が終了しました +2024/01/02 05:50:41 投票を開始します Workload: 6 +2024/01/02 05:51:26 投票が終了しました +2024/01/02 05:51:26 投票者が結果を確認しています +2024/01/02 05:51:42 投票者の感心がなくなりました +2024/01/02 05:51:42 {"score": 20725, "success": 16637, "failure": 0} +```