Browse Source

optimize nginx config (#5337)

Vikash Tiwari 5 years ago
parent
commit
faec3955f7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      frameworks/Lua/openresty/nginx.conf

+ 3 - 3
frameworks/Lua/openresty/nginx.conf

@@ -1,12 +1,12 @@
 worker_cpu_affinity auto;
 pid        /tmp/nginx.pid;
 error_log stderr error;
-worker_rlimit_nofile 1024000;
+worker_rlimit_nofile 102400;
 timer_resolution 1000ms;
 daemon off;
 
 events {
-    worker_connections 1000000;
+    worker_connections 100000;
 }
 
 http {
@@ -19,7 +19,7 @@ http {
     tcp_nodelay on; #default
     keepalive_timeout 65;
     keepalive_disable none;
-    keepalive_requests 1000000;
+    keepalive_requests 100000;
     lua_package_path '/openresty/?.lua;;';
     init_by_lua_block {
         jit.opt.start("minstitch=10")