문제

I have a nginx with 4 threads. The nginx is in front of 5 mongrels. Sometimes a query a mongrel is running takes very long. If 4 such queries occur simultaneously does that mean that all 4 threads of nginx are busy and will lock out further requests until a thread is free?

도움이 되었습니까?

해결책

As far as I know nginx threads serve multiple connections, multiplexing them by syscalls (like "epol" and "kqueue"). So, while it loops it would check syscalls to return something from backends sometimes, but it would certainly be able to reply to clients.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top