nginx - Difference between "requests in top-level queue" and "requests in queue" in Phusion Passenger -


i have setup running nginx , phusion passenger version 4.0.37

does know difference between "requests in top-level queue" , "requests in queue" when running sudo passenger-status? in cases these numbers diverge? seeing cases "requests in queue" gets large (because of socket or networking problems blocking thread), "requests in top-level queue" stays @ 0, suggests me perhaps there application-specific queues , separate concept of top-level queue. don't understand in cases top-level queue comes play.

phusion passenger's internal state consists of list of groups (representing applications), each consist of list of processes (representing application processes). when spawning first process application, phusion passenger has create , initialize group data structure, run hooks, etc. since involves reading disk , running processes, can potentially take arbitrary amount of time. during time, said request, , new requests targeted @ application, put in top-level queue until group done initializing.

each group has own queue. group initialized, relevant requests top-level queue moved group-local queue.

this reason why top-level queue empty.

the sum of values of group-local queues, plus value of top-level queue, total number of requests queued. in general, if non-zero long time that's bad.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -