사용자 도구

사이트 도구


nginx:performance

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
nginx:performance [2016/06/13 19:21]
kwon37xi [worker와 connection]
nginx:performance [2018/10/23 14:11]
kwon37xi
줄 11: 줄 11:
   * [[http://java.dzone.com/articles/thread-pools-nginx-boost|Thread Pools in NGINX Boost Performance 9x!]]   * [[http://java.dzone.com/articles/thread-pools-nginx-boost|Thread Pools in NGINX Boost Performance 9x!]]
   * [[http://www.slideshare.net/btolley/nginx-performance-ppt-2015|Accelerating Nginx Web Server Performance]]   * [[http://www.slideshare.net/btolley/nginx-performance-ppt-2015|Accelerating Nginx Web Server Performance]]
 +  * [[https://dzone.com/articles/tuning-nginx|Tuning NGINX: Part I]] 
 +  * [[https://www.sitepoint.com/apache-vs-nginx-performance-optimization-techniques/|Apache vs Nginx Performance: Optimization Techniques — SitePoint]]
  
 ===== worker와 connection ===== ===== worker와 connection =====
줄 19: 줄 20:
   * **''worker_connections''**는 하나의 ''worker_process''가 받을 수 있는 클라이언트 갯수이다.   * **''worker_connections''**는 하나의 ''worker_process''가 받을 수 있는 클라이언트 갯수이다.
     * 총 접속 가능 클라이언트 갯수(MaxClients)는 ''worker_processes * worker_connections''로 지정된다.     * 총 접속 가능 클라이언트 갯수(MaxClients)는 ''worker_processes * worker_connections''로 지정된다.
-    * Reverse Proxy 상태에서는 ''worker_processes * worker_connections / 4'' 이 값은 **''ulimit -n''의 결과값보다 작아야** 한다. 보통 1024면 충분하다.+    * Reverse Proxy 상태에서는 ''worker_processes * worker_connections / 4'' 이 값은 **''ulimit -n''의 결과값(open files)보다 작아야** 한다. 보통 1024면 충분하다.
  
  
줄 82: 줄 83:
   * [[http://wiki.nginx.org/HttpCoreModule#tcp_nodelay|tcp_nodelay]]   * [[http://wiki.nginx.org/HttpCoreModule#tcp_nodelay|tcp_nodelay]]
  
 +===== Local Port 를 못 열어서 프록시 못하는 문제 =====
 +  * [[https://ma.ttias.be/nginx-cannot-assign-requested-address-for-upstream/|Nginx: Cannot assign requested address for upstream]]
 +  * [[https://ma.ttias.be/linux-increase-ip_local_port_range-tcp-port-range/|Linux increase ip_local_port_range TCP port range]]
 +<code sh>
 +$ echo 15000 64000 > /proc/sys/net/ipv4/ip_local_port_range
 +</code>
 +  
  
nginx/performance.txt · 마지막으로 수정됨: 2024/02/15 12:16 저자 kwon37xi