diff --git a/admin/config/my.app.cnf b/admin/config/my.app.cnf index 3eb6263..76a525f 100644 --- a/admin/config/my.app.cnf +++ b/admin/config/my.app.cnf @@ -1,10 +1,10 @@ [mysqld] bind-address = 0.0.0.0 -slow_query_log=1 -long_query_time=1 -log_queries_not_using_indexes=1 -slow_query_log_file=/var/log/mysql/slow_query.log +slow_query_log=0 +#long_query_time=1 +#log_queries_not_using_indexes=1 +#slow_query_log_file=/var/log/mysql/slow_query.log innodb_buffer_pool_size = 2G innodb_log_file_size = 512M diff --git a/admin/config/nginx.conf b/admin/config/nginx.conf index 2f419bc..c73878d 100644 --- a/admin/config/nginx.conf +++ b/admin/config/nginx.conf @@ -11,29 +11,29 @@ http { default_type application/octet-stream; - access_log /var/log/nginx/access.log; - error_log /var/log/nginx/error.log; + # access_log /var/log/nginx/access.log; + # error_log /var/log/nginx/error.log; - # access_log off; - # error_log /dev/null; + access_log off; + error_log /dev/null; # alp 用のログフォーマット - log_format ltsv "time:$time_local" - "\thost:$remote_addr" - "\tforwardedfor:$http_x_forwarded_for" - "\treq:$request" - "\tstatus:$status" - "\tmethod:$request_method" - "\turi:$request_uri" - "\tsize:$body_bytes_sent" - "\treferer:$http_referer" - "\tua:$http_user_agent" - "\treqtime:$request_time" - "\tcache:$upstream_http_x_cache" - "\truntime:$upstream_http_x_runtime" - "\tapptime:$upstream_response_time" - "\tvhost:$host"; - access_log /var/log/nginx/access.log ltsv; + # log_format ltsv "time:$time_local" + # "\thost:$remote_addr" + # "\tforwardedfor:$http_x_forwarded_for" + # "\treq:$request" + # "\tstatus:$status" + # "\tmethod:$request_method" + # "\turi:$request_uri" + # "\tsize:$body_bytes_sent" + # "\treferer:$http_referer" + # "\tua:$http_user_agent" + # "\treqtime:$request_time" + # "\tcache:$upstream_http_x_cache" + # "\truntime:$upstream_http_x_runtime" + # "\tapptime:$upstream_response_time" + # "\tvhost:$host"; + # access_log /var/log/nginx/access.log ltsv; proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=CACHE:10m max_size=1g inactive=1m use_temp_path=off; diff --git a/note.go.md b/note.go.md index d7b7c52..7c70569 100644 --- a/note.go.md +++ b/note.go.md @@ -135,3 +135,17 @@ docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload 7" 2024/01/10 09:20:11 投票者の感心がなくなりました 2024/01/10 09:20:11 {"score": 381180, "success": 256388, "failure": 0} ``` + +middleware: disable logs 344721 + +``` +❯ make bench +docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload 7" +2024/01/10 10:59:18 期日前投票を開始します +2024/01/10 10:59:19 期日前投票が終了しました +2024/01/10 10:59:19 投票を開始します Workload: 7 +2024/01/10 11:04:35 投票が終了しました +2024/01/10 11:04:35 投票者が結果を確認しています +2024/01/10 11:04:50 投票者の感心がなくなりました +2024/01/10 11:04:50 {"score": 344721, "success": 233409, "failure": 0} +```