[dancer-users] Number of Nginx vs number of Starman?
jesse.thompson at wisc.edu
Mon Jan 12 13:50:51 GMT 2015
One of the things that keeps me tied to Apache is Mod Perl's ability to
hook into the HTTP request cycle in interesting ways.
My load balancing requirements include the ability to fail the
connection if a health check response to a noop fails if it takes longer
than several seconds, which is an indication of the upstream server
being offline (long TCP timeouts!) or the upstream server is slow due
load or having just come online. In-band/passive health checks aren't
adequate because you have to set the timeout to be longer than your
longest "normal" request (which in my case, is very long) in order to
prevent the load balancing algorithm from taking your upstream servers
out of the cluster when there is no outage.
Some day, I would like to move to Nginx, but I would need to figure out
how to implement a similar hook into the HTTP request. Maybe it's
On 12/28/2014 6:54 AM, Andrew Solomon wrote:
> I've found nginx to be an easy approach to load balancing (though I've
> only done this with fairly simple web services).
> On Sun, Dec 28, 2014 at 9:50 AM, Gabor Szabo <gabor at szabgab.com> wrote:
>> Thanks for that, but I guess that nginx server also has several workers.
>> Could you share that number as well?
>> And if you can, also what do you use for load balancing?
>> On Sun, Dec 28, 2014 at 9:47 AM, Naveed Massjouni <naveedm9 at gmail.com>
>>> For a heavily trafficked site I have had success with the following setup:
>>> 1 nginx server -> 1 load balancer -> 8 starman application servers
>>> Each application server runs 8 starman workers, so that's 1 ngninx to 64
>>> starman workers.
>>> -Naveed Massjouni
>>> On Sun, Dec 28, 2014 at 2:19 AM, Gabor Szabo <gabor at szabgab.com> wrote:
>>>> In a setup where I use Nginx as reverse proxy in front of Starman
>>>> handling a Dancer2 application, what would be the recommended relation
>>>> between the Nginx and Starman workers?
>> dancer-users mailing list
>> dancer-users at dancer.pm
> dancer-users mailing list
> dancer-users at dancer.pm
More information about the dancer-users