문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
nginx:performance [2015/02/04 19:52] kwon37xi |
nginx:performance [2024/02/15 12:16] kwon37xi [Keep Alive 튜닝] |
||
---|---|---|---|
줄 9: | 줄 9: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
===== worker와 connection ===== | ===== worker와 connection ===== | ||
줄 16: | 줄 24: | ||
* **'' | * **'' | ||
* 총 접속 가능 클라이언트 갯수(MaxClients)는 '' | * 총 접속 가능 클라이언트 갯수(MaxClients)는 '' | ||
- | * Reverse Proxy 상태에서는 '' | + | * Reverse Proxy 상태에서는 '' |
- | * 이 값은 **'' | + | |
===== 운영체제 설정값 ===== | ===== 운영체제 설정값 ===== | ||
줄 46: | 줄 54: | ||
< | < | ||
location /images { | location /images { | ||
+ | access_log off; | ||
+ | } | ||
+ | |||
+ | 혹은 | ||
+ | |||
+ | location ~* \.(js|css|png|jpg|jpeg|gif|ico) { | ||
access_log off; | access_log off; | ||
} | } | ||
</ | </ | ||
- | ===== Kepp Alive 튜닝 ===== | + | ===== Keep Alive 튜닝 ===== |
- | * 해봐. | + | * [[web: |
+ | * keepalive를 무작정 선택하지 말고 성능 테스트를 | ||
+ | * [[https:// | ||
===== Disk IO 병목 ===== | ===== Disk IO 병목 ===== | ||
- | * [[http:// | + | * [[http:// |
| | ||
| | ||
줄 60: | 줄 76: | ||
| | ||
</ | </ | ||
+ | |||
+ | ===== tcp_nopush, tcp_nodelay ===== | ||
+ | * 보통은 할 필요 없다. | ||
+ | * 하면 성능 향상이 있을 수 있지만, 때로는 오히려 저하가 발생할 수도 있다. 따라서 꼭 테스트가 필요하다. | ||
+ | * < | ||
+ | sendfile on; | ||
+ | tcp_nopush on; | ||
+ | tcp_nodelay on; | ||
+ | </ | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Local Port 를 못 열어서 프록시 못하는 문제 ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | <code sh> | ||
+ | $ echo 15000 64000 > / | ||
+ | </ | ||
+ | | ||