Nginx upstream servers status

Sandeep L sandeepvreddy at outlook.com
Wed Jul 3 05:55:32 UTC 2013


Hi Parikh,
I used following configuration but still its waiting for long time.
server host1.example.com:8080 max_fails=2 fail_timeout=5s;

As you suggested removed off
proxy_next_upstream error timeout http_404 http_500 http_502 http_503 http_504;
Thanks,Sandeep.
Date: Wed, 3 Jul 2013 00:47:31 -0500
From: sajan at noppix.com
To: nginx at nginx.org
Subject: Re: Nginx upstream servers status


  
    
  
  
    In your proxy_next_upstream, why do you
      have 'off' enabled.

      

      off — it forbids the request transfer to the next server.

      

      Remove 'off' from that line.

      

      Sajan Parikh

        Owner, Noppix LLC

        

        e: sajan at noppix.com

        p: (563) 726-0371

        

        
      On 07/03/2013 12:37 AM, Sandeep L wrote:

    
    
      
      @Parikh I tried with  proxy_next_upstream also but facing same issue.
        

            
        Regarding fail_timeout I used values
              from 10s to 30s but facing same issue.
        

            
        I used following configuration, just
              check and let me know If I am missing any thing.
        

            
        upstream appcluster {
              server host1.example.com:8080
              max_fails=2 fail_timeout=10s;
              server host2.example.com:8080
              max_fails=2 fail_timeout=10s;
            }

              
          

            
          
            server {         
                            listen *;
                            location / {
                                    proxy_pass
                 http://appcluster;
                                    proxy_next_upstream error
                timeout http_404 http_500 http_502 http_503 http_504
                off;
                                    proxy_set_header  X-Real-IP
                 $remote_addr;
                            }
            }
            

            
            

            
            Thanks,
            Sandeep.
            

            

            > To: nginx at nginx.org

              > Subject: Re: Nginx upstream servers status

              > From: nginx-forum at nginx.us

              > Date: Wed, 3 Jul 2013 01:11:20 -0400

              > 

              > you allow 600 seconds to pass until you npotice, that
              your upstream-server 

              > is not responsible. 

              > 

              > ... max_fails=2 fail_timeout=300s;

              > 

              > why?

              > 

              > Posted at Nginx Forum:
              http://forum.nginx.org/read.php?2,240513,240515#msg-240515

              > 

              > _______________________________________________

              > nginx mailing list

              > nginx at nginx.org

              > http://mailman.nginx.org/mailman/listinfo/nginx

            
          
        
      
      

      
      

      _______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
    
    

  


_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130703/81ed9f6b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emailsiglogo.png
Type: image/png
Size: 6717 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130703/81ed9f6b/attachment.png>


More information about the nginx mailing list