From 60be11c85b73e0191886e884ca4bd7aeb91ebd68 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Thu, 23 Dec 2021 11:42:56 +0200 Subject: [PATCH] [benchmarks] Trim down NGinx dummy configuration. --- examples/dummy/nginx-dummy.conf | 66 +++++++-------------------------- 1 file changed, 14 insertions(+), 52 deletions(-) diff --git a/examples/dummy/nginx-dummy.conf b/examples/dummy/nginx-dummy.conf index dedb34c..3c3d3b9 100644 --- a/examples/dummy/nginx-dummy.conf +++ b/examples/dummy/nginx-dummy.conf @@ -1,51 +1,24 @@ +worker_processes 2; +worker_rlimit_nofile 131072; + +events { + use epoll; + worker_connections 16640; +} + + http { - - root /var/lib/empty; - - index index.html index.txt; - autoindex off; - include /dev/null; - default_type application/octet-stream; - - gzip off; - gzip_buffers 128 16k; - gzip_comp_level 9; - gzip_min_length 0; - gzip_proxied any; - gzip_types *; - server { + listen 127.9.185.194:8080 bind reuseport backlog=65536; - listen 127.9.185.194:8080 default_server bind backlog=65536; - - server_name nginx; - server_tokens off; - server_name_in_redirect off; - port_in_redirect off; - + keepalive_disable none; keepalive_requests 262144; keepalive_timeout 60s; - tcp_nodelay off; - tcp_nopush off; - - sendfile off; - directio off; - aio off; - - open_file_cache max=2048 inactive=60s; - open_file_cache_valid 60s; - open_file_cache_min_uses 1; - open_file_cache_errors on; - output_buffers 4 128k; - postpone_output 16k; - read_ahead 1; - - location / { limit_except GET HEAD { @@ -57,13 +30,13 @@ http { add_header "Cache-Control" "no-store, max-age=0"; return 200 "hello world!\n"; } - } - error_log /dev/stderr notice; access_log off; - log_not_found on; + log_not_found off; + + root /var/lib/empty; client_body_temp_path /var/lib/empty; proxy_temp_path /var/lib/empty; @@ -73,19 +46,8 @@ http { } -worker_processes 2; -worker_rlimit_nofile 131072; working_directory /var/lib/empty; - error_log /dev/stderr notice; pid /tmp/nginx.pid; daemon off; - -events { - use epoll; - worker_connections 16640; - accept_mutex off; - multi_accept off; -} -