Inaccessible backend

Igor Sysoev is at rambler-co.ru
Wed Aug 22 11:43:58 MSD 2007


On Wed, Aug 22, 2007 at 08:34:59AM +0100, Malte Sussdorff wrote:

> I am using NGINX as a load balancer in front of two aolserver  
> webservers. This works perfectly, sadly the AOLserver sometimes has  
> the problem that it just "hangs" until it gets restarted. So it is  
> accepting the connection, but not returning anything back.
> 
> Now I am unsure with which parameters to play in the proxy setting to  
> reflect this behavior and say "if the server does not send anything  
> back in e.g. 15 seconds then go to the other server".
> 
> Furthermore, is there a possibility to have a different setting for  
> specific locations, so that "mysite://longreportpage" has a timeout  
> of 60 seconds?
> 
> Thanks for helping me out.
> 
> (from my proxy.conf)
> 
> proxy_connect_timeout      50;
> proxy_send_timeout         50;
> proxy_read_timeout         50;
> 
> proxy_buffer_size          4k;
> proxy_buffers              4 32k;
> proxy_busy_buffers_size    64k;
> proxy_temp_file_write_size 64k;

   server {

       # default:
       #proxy_next_upstream  error timeout invalid_header;

       proxy_connect_timeout   5;
       proxy_send_timeout      5;
       proxy_read_timeout      15;

       location  /longreportpage  {
           proxy_pass     ...
       }

       location  /longreportpage  {
           proxy_pass     ...

           proxy_connect_timeout   5;
           proxy_send_timeout      5;
           proxy_read_timeout      60;
       }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list