Welcome! Log In Create A New Profile

Advanced

Re: Load balancing PHP via Nginx...

Jeffrey 'jf' Lim
September 02, 2009 11:40PM
On Thu, Sep 3, 2009 at 11:10 AM, Ilan Berkner <iberkner@gmail.com> wrote:

> Maybe I'm not explaining myself correctly, maybe your suggestions are the
> right way to go, but I see a lot of nginx examples such as this:
> upstream phpproviders {
> server 127.0.0.1:3000;
> server 127.0.0.1:3001;
> server 127.0.0.1:3002;
> }
>
>
:) yeah, that works fine. I just saw the phrase "additional (fastcgi)
requests" - and immediately thought u meant to refer to a priority system...
(ie. where "all requests go to this box. Until it's loaded. Then send the
additional requests to that other box!")



> In this example, different port numbers are used, but you can use different
> ip addresses.
>
> inside the location / tag you would specify:
>
> proxy_pass http://phpproviders
>
> nginx in the simplest (default mode) would round robin the requests.
>
> Is this not a good type of methodology?
>
>
it depends really on what you want/need. If you want a simple setup, this
could do. And if there is nothing requiring you to stick each request to any
particular server (since you have session management in memcache; assuming
you have enough memory, and dont have to forcibly retire sessions ahead of
their intended expiry time!!!), then this could very well work for you.

-Jeff
Subject Author Posted

Load balancing PHP via Nginx...

iberkner September 02, 2009 10:33PM

Re: Load balancing PHP via Nginx...

Jeffrey 'jf' Lim September 02, 2009 11:00PM

Re: Load balancing PHP via Nginx...

iberkner September 02, 2009 11:32PM

Re: Load balancing PHP via Nginx...

Jeffrey 'jf' Lim September 02, 2009 11:40PM

Re: Load balancing PHP via Nginx...

iberkner September 03, 2009 12:02AM

Re: Load balancing PHP via Nginx...

Jeffrey 'jf' Lim September 03, 2009 12:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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