Welcome! Log In Create A New Profile

Advanced

randomlize nginx round robin peers

Ning Wang
August 22, 2011 04:24AM
Hi guys, i found something interesting.

here is our web server architectures. NGX1, NGX2 and NGX3 has the same
nginx.conf file. In our production environment, there are more nginx and
Resin server.

LVS
/ | \
/ | \
NGX1 NGX2 NGX3
|\ \
| \ \
| \ \
Resin1 Resin2 Resin3

when network traffic is directed to lvs(round robin request dispatching
method), all the first hundreds of requests go to Server Resin1。Resin1 is
overloaded and crashed. Then request goes to Resin2, and Resin2 dies, and
then Resin3...

There are 9 NGX servers(of the same weights) and 8 nginx worker processes on
each NGX server. So all the first 8*9 requests all go to Resin1. Currently
we just patched the code to randomlize nginx round robin peers to solve this
problem temporarily。

Any one has a good idea? Thx.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

randomlize nginx round robin peers

Ning Wang August 22, 2011 04:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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