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. http://blog.zjt.im/2014/04/custom-load-balancing-with-modperl.html 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 already possible? Jesse 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).
http://nginx.org/en/docs/http/load_balancing.html
Andrew
On Sun, Dec 28, 2014 at 9:50 AM, Gabor Szabo <gabor@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?
Gabor
On Sun, Dec 28, 2014 at 9:47 AM, Naveed Massjouni <naveedm9@gmail.com> wrote:
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@szabgab.com> wrote:
Hi,
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?
Gabor
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users