Welcome! Log In Create A New Profile

Advanced

Re: 100% with upstream / backup server

All files from this thread

File Name File Size   Posted by Date  
ngx_round_robin_fix.patch 555 bytes open | download Piotr Sikora 01/26/2010 Read message
ngx_round_robin_fix_v2.patch 551 bytes open | download Piotr Sikora 01/26/2010 Read message
Maxim Dounin
January 26, 2010 12:14PM
Hello!

On Tue, Jan 26, 2010 at 05:39:02PM +0100, Matthias Rieber wrote:

> Hi,
>
> I've noticed a strange issue. I've a configuration like:
>
> ...
> upstream _backend {
> server 10.0.0.1:80 down;
> server 10.0.0.2:80 down;
> server 127.0.0.1:80 backup;
> }
> ...
>
>
> the purpose is to disable all backends and switch to some kind of
> maintenance mode.
>
> Howerver, with this config, all workers have after the first
> requests a very high cpu load and nginx is not properly answering
> requests anymore.
> Whenn I kill the workers, they reappear with the high load.
>
> I such a setup not allowed?

Yes, with all servers marked as 'down' nginx is caught in infinite
loop in ngx_http_upstream_get_peer(). I'll take a look how to fix
this properly.

Maxim Dounin

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

100% with upstream / backup server

Matthias Rieber January 26, 2010 11:44AM

Re: 100% with upstream / backup server Attachments

Piotr Sikora January 26, 2010 12:02PM

Re: 100% with upstream / backup server

Maxim Dounin January 26, 2010 12:18PM

Re: 100% with upstream / backup server Attachments

Piotr Sikora January 26, 2010 12:36PM

Re: 100% with upstream / backup server

Maxim Dounin January 26, 2010 02:02PM

Re: 100% with upstream / backup server

Matthias Rieber January 26, 2010 04:22PM

Re: 100% with upstream / backup server

Maxim Dounin January 26, 2010 12:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 297
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