Load balancer as a proxy server or redirector

Current situation: I wrote a C # application server that interacts with some applications (Computer / Smartphone / Web). Now I have a problem that the application server has to deal with a lot of requests, and it will be very slow.

My idea was to change the application server to work in a software cluster. To choose the right application server, I want to write a load balancer that selects the application server with the least workload.

My problem is that I do not know how to write load-balancer. If the load balancer works as a proxy server, so that all traffic passes through the load balancer or redirects the load to the application server and the application communicates directly with the application server.

+4
source share
4 answers

, , , - HAProxy, - HTTP/TCP/HA, (, cookie-inertion, ), , , , .

,

-,

- - , (, ), , ( node), )

,

: , , , , HAProxy Architecture - .

+5

:

  • , . IP/URL- , , , . LB, IP-. , .

  • , LB. , / , . HAProxy, Appache HTTPD, Microsoft NLB, NginX. , .

+3

URL- , .

, , , . , " ", , (, ), (, ) . - ( , - ). .

Microsoft. , , .

, , , , , .

+2

, Apache + mod_cluster. ... Apache + mod_cluster → Tomcat1, Tomcat2, Tomcat3, Tomcat4. Apache + mod_cluster, , Tomcat1, Tomcat2, Tomcat3, Tomcat4. , Apache. Stick.

The main advantage of mod_cluster is server-side load balancing. Apache + mod_cluster can also handle HTTPS requests.

http://mod-cluster.jboss.org/

+2
source

All Articles