Welcome! Log In Create A New Profile

Advanced

Reg. automatic failover

ESWAR RAO
April 09, 2013 08:36AM
Hi All,

I observed that automatic failover behaviour is not working with my nginx
server.
# /opt/nginx/sbin/nginx -v
nginx version: nginx/1.2.8


nginx server is running with following conf:

upstream lb_get {
server localhost:8031 ;
server localhost:8032 ;
}
server {
listen 8081;
......................
}
location / {
proxy_pass http://lb_get;
..............
}

I have two servers running as:
$ nc -kl 8031 $ nc -kl 8032

From another machine:
# curl 'http://192.168.2.94:8081'

$ nc -kl 8031
GET / HTTP/1.0
Host: 192.168.2.94
X-Real-IP: 192.168.2.52
X-Forwarded-For: 192.168.2.52
Connection: close
User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
zlib/1.2.3.4 libidn/1.23 librtmp/2.3
Accept: */*

But if I kill this server the curl client is also getting killed and its
not getting transferred to other server listening at 8032.

Can anyone provide me some insight on this issue.

Thanks
Eswar
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Reg. automatic failover

ESWAR RAO April 09, 2013 08:36AM

Re: Reg. automatic failover

ESWAR R. April 15, 2013 03:16AM

Re: Reg. automatic failover

Jonathan Matthews April 15, 2013 07:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready