[benchmarks] Trim down NGinx dummy configuration.

This commit is contained in:
Ciprian Dorin Craciun 2021-12-23 11:42:56 +02:00
parent 9bb8cb940e
commit 60be11c85b

View file

@ -1,51 +1,24 @@
worker_processes 2;
worker_rlimit_nofile 131072;
events {
use epoll;
worker_connections 16640;
}
http { 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 { server {
listen 127.9.185.194:8080 bind reuseport backlog=65536;
listen 127.9.185.194:8080 default_server bind backlog=65536; keepalive_disable none;
server_name nginx;
server_tokens off;
server_name_in_redirect off;
port_in_redirect off;
keepalive_requests 262144; keepalive_requests 262144;
keepalive_timeout 60s; 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 / { location / {
limit_except GET HEAD { limit_except GET HEAD {
@ -57,13 +30,13 @@ http {
add_header "Cache-Control" "no-store, max-age=0"; add_header "Cache-Control" "no-store, max-age=0";
return 200 "hello world!\n"; return 200 "hello world!\n";
} }
} }
error_log /dev/stderr notice; error_log /dev/stderr notice;
access_log off; access_log off;
log_not_found on; log_not_found off;
root /var/lib/empty;
client_body_temp_path /var/lib/empty; client_body_temp_path /var/lib/empty;
proxy_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; working_directory /var/lib/empty;
error_log /dev/stderr notice; error_log /dev/stderr notice;
pid /tmp/nginx.pid; pid /tmp/nginx.pid;
daemon off; daemon off;
events {
use epoll;
worker_connections 16640;
accept_mutex off;
multi_accept off;
}