하나의 html 파일을 제공하는 서버가 있습니다.
현재 서버에는 2 개의 CPU와 2GB의 램이 있습니다. blitz.io에서 우리는 분당 약 12,000 개의 연결을 얻고 있으며 매초 250 개의 동시 연결로 60 초 동안 200 번의 시간 제한을받습니다.
worker_processes  2;
events {
 worker_connections 1024;
}
제한 시간을 늘리면 응답 시간이 1 초 이상 증가하기 시작합니다.
이것에서 더 많은 주스를 짜기 위해 또 무엇을 할 수 있습니까?
답변
구성 파일 :
worker_processes  4;  # 2 * Number of CPUs
events {
    worker_connections  19000;  # It's the key to high performance - have a lot of connections available
}
worker_rlimit_nofile    20000;  # Each connection needs a filehandle (or 2 if you are proxying)
# Total amount of users you can serve = worker_processes * worker_connections
추가 정보 : 높은 트래픽로드를위한 nginx 최적화
