Welcome! Log In Create A New Profile

Advanced

Floating Point exception w/ down server in upstream

April 30, 2009 06:28AM
Hello,

I've been using nginx pretty successfully for awhile, and this problem started recently. I've got CentOS 5 and the nginx from yum (nginx/0.6.32).

Here is my config:

upstream search1.us_seach {

server slave1.search1.xxxxxx.us:8080 weight=3 max_fails=40 fail_timeout=20s;

server master.search1.xxxxxx.us:8080 weight=1 max_fails=0;
}

When the master server is down, instead of failing over to the slave server (as expected). I get this:

2009/04/30 02:23:34 [error] 15116#0: *99 connect() failed (111: Connection refused) while connecting to upstream, client: 127.0.0.1, server: _, request: "GET /mypath/to/something HTTP/1.1", upstream: "http://11.111.111.11:8080//mypath/to/something", host: "localhost:81"
2009/04/30 02:23:34 [notice] 13227#0: signal 17 (SIGCHLD) received
2009/04/30 02:23:34 [alert] 13227#0: worker process 15116 exited on signal 8
2009/04/30 02:23:34 [notice] 13227#0: start worker process 16779

Where (11.111.111.11 == master.search1.xxxxxx.us).

It never even tries the slave server because it just bails right there.

I made an strace of the problem, it is available here:
http://pastebin.ca/1408224

Here is the very end of it:

#
gettimeofday({1241072060, 198274}, NULL) = 0
#
getsockopt(20, SOL_SOCKET, SO_ERROR, [111], [4]) = 0
#
write(9, "2009/04/30 02:14:20 [error] 1322"..., 335) = 335
#
--- SIGFPE (Floating point exception) @ 0 (0) ---

I tried compiling 0.6.7. The problem remains, but is slightly better. Now, it will actually try the slave server first sometimes, but it will still die every time it tries the master, not falling over to the slave.

Thank you!
Jacob
Subject Author Posted

Floating Point exception w/ down server in upstream

JacobSingh April 30, 2009 06:28AM

Re: Floating Point exception w/ down server in upstream

Igor Sysoev April 30, 2009 07:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 45
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready