Load Balancing
Hi,
We have 3 servers (2 Tomcat and 1 Database) which all works on Red hat 7. We would like to have a Load Balancing active/active on the 2 Tomcat Servers without adding a third server to do load balancer.
Does it possible to have a Load Balancing with only 2 servers ?? !
I tried with Pacemaker/Corosync but I don't think is the good way (only active/passive from RHEL documentation). Then I trying CLUSTERIP (IPtables module) but I am not able to have an active/active cluster and no way to manage the weights.
So i need some help to find a solution, I don't really need HA (because we already have 2 servers) but LB !
Thanks you,
Responses
Eric, it is advisable for a LB to be separate from the worker nodes (2 Tomcat servers). It enables you to distribute work load by applying a range of load balancing algorithms (examples below) suitable for your needs.
Round Robin, Weighted Round Robin, Least connections, Weighted least connections, Random, URL hash.
From that link [https://www.certdepot.net/rhel7-configure-high-available-load-balancer/] the first line reads "you need 2 virtual/physical servers for the load-balancers and 2 virtual/physical servers to load-balance."
I'm interested to learn about your load balancing method whereby the load balancing server and the load balanced server is the same node.
It states a requirement for 2 HAProxy servers and 2 servers to be load balanced. Are you able to provide an example for your method whereby the load balancing server and the load balanced server is the same node?
A VIP address is necessary. Please explain how the VIP address will be configured on both Tomcat servers without IP address conflict?
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
