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?

September 10, 2009 07:46AM
1.6mm page views per day and growing (all dynamic php), this does not inclue
a large number of static files (mostly mp3 files) being served as well.

Nginx is serving both PHP and static files all from the same server.

Main bottleneck right now is PHP processes getting overloaded, probably due
to high number of connections (we are working on reducing this number - we
have some inefficiencies where a single page may make over 120 requests
before completely loading). The other issue is the number of database
requests per page can be very high which delays PHP response times and
increases queue.

Regardless, we need to add another box, but I'm trying to figure out if best
approach is physical LB in front of duplicate nginx boxes, i.e. each box
serving both PHP and static files OR more complex solution with one of the
boxes acting as master and routing PHP requests via Nginx to other boxes,
etc. as well as possibly adding a static server specifically for images and
mp3 files.

On Thu, Sep 10, 2009 at 5:35 AM, Dinh Pham <lists@ruby-forum.com> wrote:

> 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: 177
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