Proxy selection: mod_proxy_balancer, nginx + proxy balancer, haproxy?

We launch the Rails website at http://hansard.millbanksystems.com on a special accelerator. We currently have an Apache installation with mod-proxy-balancer, which maximizes up to four mongrels running the application.

Some requests are executed rather slowly, and to prevent a situation when other requests are queued for them, we are considering proxy options that will send requests to the idler, if any.

Possible options:

  • recompiling mod_proxy_balancer for Apache as described at http://labs.reevoo.com/

  • compiling nginx with a fair proxy balancer for Solaris

  • haproxy compilation for Open Solaris (although this may not work well with SMF)

Are these reasonable options? Did we miss something obvious? We will be very grateful for your advice.

+3
source share
6 answers

Apache is a bit of a strange beast that you can use for balancing. This is certainly capable, but he likes to use the tank for shopping.

Haproxy / Nginx is more specifically designed to work. You should get higher throughput and use fewer resources at the same time.

+4
source

HAProxy offers a much richer set of load balancing features than mod_proxy_balancernginx and almost any other software out there.

, , , , .

, , .

37Signals Rails HAProxy ( ).

+3

Apache, Mongrel -, nginx lighttpd, , Pound .

(http://www.apsis.ch/pound/) !

+2

haproxy SMF , soft-restart 'refresh', script.

, IME haproxy , . TB haproxy Solaris 10 (touch wood) 2 .

+2

Pound - HTTP, . , :

DynScale (0 | 1): ( : 0). Pound back-end. .

The pound is small, well-documented and easy to set up.

+1
source

I have successfully used mod_proxy_balancer + mongrel_cluster (low traffic site).

0
source

Source: https://habr.com/ru/post/1698201/


All Articles