1 回答
- 最新
- 投票最多
- 评论最多
0
you may need to adjust additional settings to further optimize your environment for handling a large number of connections. For example, you could try:
Increasing worker_processes to take advantage of multiple CPU cores. Increasing keepalive_timeout to allow for persistent connections. Setting proxy_http_version 1.1 and proxy_set_header Connection ""; to enable HTTP/1.1 support with proxying. Here's an example configuration:
worker_processes auto;
events {
worker_connections 10240;
}
http {
keepalive_timeout 65;
server {
listen 80;
location / {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass http://your_upstream;
proxy_connect_timeout 3600;
proxy_send_timeout 3600;
proxy_read_timeout 3600;
}
}
}
相关内容
- AWS 官方已更新 9 个月前
- AWS 官方已更新 8 个月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 7 个月前