Welcome! Log In Create A New Profile


Floating Point exception w/ down server in upstream

April 30, 2009 06:28AM

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:, server: _, request: "GET /mypath/to/something HTTP/1.1", upstream: "", 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 ( == 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:

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!
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: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready