...
CentOS 의 KeepAlive 는 기본적으로 꺼져 있다. 이것을 On 으로 설정하고 최대 KeepAlive Requests 가 100 인데 이 값도 큰 값으로 설정하자.
그리고 프로젝트의 용량이 크거나 네트웍 사정이 좋지 않을 경우 TimeOut 과 KeepAliveTimeout 의 값을 충분히 크게 늘려야 한다.
Code Block | ||
---|---|---|
| ||
# Timeout: The number of seconds before receives and sends time out. ## Timeout 60 Timeout 600 # KeepAlive: Whether or not to allow persistent connections (more than one request per connection). Set to "Off" to deactivate. ## KeepAlive Off KeepAlive On # MaxKeepAliveRequests: The maximum number of requests to allow during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. ## MaxKeepAliveRequests 100 MaxKeepAliveRequests 1000 10000 # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 15 KeepAliveTimeout 600 |
See Also
...