Welcome! Log In Create A New Profile

Advanced

RE: is it better to upstream php processes via nginx or use a front facing load balancer?

David Murphy
September 10, 2009 09:04AM
We use nginx as a pure LB.

All php sessions and static files are shared to all apache 2 webheads via OCFS2.

Then we use upstream fair, and removed the need for sticky sessions ( by using a clustered FS to share the session files to all nodes)

This lets every image/html/php request go to different webheads for maximum response for the EU.

Also we wrote it so if nginx gets a proxy error, it marks the webhead as bad and reprocess the request until it finds a good webhead to proxy to.

Btw use use apache webheads so we can use php as a module rather than fcgi and spawn php type methods.

Hope it helps
David

-----Original Message-----
From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of Dinh Pham
Sent: Thursday, September 10, 2009 4:36 AM
To: nginx@sysoev.ru
Subject: Re: is it better to upstream php processes via nginx or use a front facing load balancer?

How high traffic have your sites got?

In my system, Nginx plays a role of a LB and static file server. It dispatches .php requests to a pool of Apache instances and PHP FCGI. It works great for 600 000+ page views per day.

Ilan Berkner wrote:
> Hi,
> Is it better to use a hardware load balancer in front of multiple
> nginx boxes, each running their own php processes or is it better to
> use nginx's upstream functionality and round robin php requests?

--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

is it better to upstream php processes via nginx or use a front facing load balancer?

iberkner September 09, 2009 12:42PM

Re: is it better to upstream php processes via nginx or use a front facing load balancer?

Dinh Pham September 10, 2009 05:38AM

Re: is it better to upstream php processes via nginx or use a front facing load balancer?

iberkner September 10, 2009 07:46AM

RE: is it better to upstream php processes via nginx or use a front facing load balancer?

David Murphy September 10, 2009 09:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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