Hello
I need an advice about Ruby LSAPI process configuration. Things that I wona to see.
If Ruby (working trough lsapi) does not to serve request at required time I need to interrupt the request and stop it processing. After that raise Ruby exception which I can catch in my application and send an e-mail with Subject "Bla-bla-bla timeout while processing request"
That I can do. I've tune Initial Request Timeout, Retry Timeout, Connection Keepalive Timeout,Instances and Max Idle Time. I have tried various combination of LSAPI_* environments as well as Max Connection settings. Thats all for LiteSpeed API App Definition (Ruby LSAPI). It works but not exactly I wont.
My application catn the exception about it interupted by SIGUSR1 - thats fine. But...
Then I look to logs and see that
then timeout (Initial Request Timeout) happen - WebServer call the application again trough dispatch.lsapi and does it 3 times for each request before raise 503 exception.
I need to know how do avoid this behavior ? I need to give Ruby only one chance to serve request in required time but continue serve concurrent connections.
The servers log:
2008-10-22 18:57:20.964 [INFO] [192.168.1.111:43208-0#Test] [REWRITE] Source URI: '/projects/393/issues.html' => Result URI: '/dispatch.lsapi'
2008-10-22 18:57:20.964 [INFO] [192.168.1.111:43208-0#Test] [REWRITE] Last Rule, stop!
2008-10-22 18:57:20.984 [INFO] [Test] add child process pid: 25325
2008-10-22 18:57:20.984 [INFO] [Test] pid list size: 1
2008-10-22 18:58:03.016 [INFO] [192.168.1.111:43208-0#Test:lsapi] ExtConn timed out while processing.
2008-10-22 18:58:03.016 [INFO] [192.168.1.111:43208-0#Test:lsapi] connection to [uds://tmp/lshttpd/Test.sock] on request #0, Connection timed out!
2008-10-22 18:58:13.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] No request delivery notification has been received from LSAPI process:-2, possible run away process.
2008-10-22 18:58:13.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] connection to [uds://tmp/lshttpd/Test.sock] on request #0, Connection timed out!
2008-10-22 18:58:58.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] ExtConn timed out while processing.
2008-10-22 18:58:58.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] connection to [uds://tmp/lshttpd/Test.sock] on request #0, Connection timed out!
2008-10-22 18:58:58.056 [NOTICE] [192.168.1.111:43208-0#Test:lsapi] oops! 503 Service Unavailable
2008-10-22 18:58:58.056 [NOTICE] [192.168.1.111:43208-0#Test:lsapi] Content len: 0, Request line:
GET /projects/393/issues HTTP/1.1
Thank You in advance. Googleing didn't help me
I need an advice about Ruby LSAPI process configuration. Things that I wona to see.
If Ruby (working trough lsapi) does not to serve request at required time I need to interrupt the request and stop it processing. After that raise Ruby exception which I can catch in my application and send an e-mail with Subject "Bla-bla-bla timeout while processing request"
That I can do. I've tune Initial Request Timeout, Retry Timeout, Connection Keepalive Timeout,Instances and Max Idle Time. I have tried various combination of LSAPI_* environments as well as Max Connection settings. Thats all for LiteSpeed API App Definition (Ruby LSAPI). It works but not exactly I wont.
My application catn the exception about it interupted by SIGUSR1 - thats fine. But...
Then I look to logs and see that
then timeout (Initial Request Timeout) happen - WebServer call the application again trough dispatch.lsapi and does it 3 times for each request before raise 503 exception.
I need to know how do avoid this behavior ? I need to give Ruby only one chance to serve request in required time but continue serve concurrent connections.
The servers log:
2008-10-22 18:57:20.964 [INFO] [192.168.1.111:43208-0#Test] [REWRITE] Source URI: '/projects/393/issues.html' => Result URI: '/dispatch.lsapi'
2008-10-22 18:57:20.964 [INFO] [192.168.1.111:43208-0#Test] [REWRITE] Last Rule, stop!
2008-10-22 18:57:20.984 [INFO] [Test] add child process pid: 25325
2008-10-22 18:57:20.984 [INFO] [Test] pid list size: 1
2008-10-22 18:58:03.016 [INFO] [192.168.1.111:43208-0#Test:lsapi] ExtConn timed out while processing.
2008-10-22 18:58:03.016 [INFO] [192.168.1.111:43208-0#Test:lsapi] connection to [uds://tmp/lshttpd/Test.sock] on request #0, Connection timed out!
2008-10-22 18:58:13.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] No request delivery notification has been received from LSAPI process:-2, possible run away process.
2008-10-22 18:58:13.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] connection to [uds://tmp/lshttpd/Test.sock] on request #0, Connection timed out!
2008-10-22 18:58:58.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] ExtConn timed out while processing.
2008-10-22 18:58:58.056 [INFO] [192.168.1.111:43208-0#Test:lsapi] connection to [uds://tmp/lshttpd/Test.sock] on request #0, Connection timed out!
2008-10-22 18:58:58.056 [NOTICE] [192.168.1.111:43208-0#Test:lsapi] oops! 503 Service Unavailable
2008-10-22 18:58:58.056 [NOTICE] [192.168.1.111:43208-0#Test:lsapi] Content len: 0, Request line:
GET /projects/393/issues HTTP/1.1
Thank You in advance. Googleing didn't help me