...
For any traffic that you intend to load-balance please be sure you have DNS pointed at the load balancer's virtual IP (VIP).
In order to properly configure your load-balancer we will need to know which servers (also specify which IPs on which servers) you wish to have load-balanced and which types of traffic you will be load-balancing. The most common scenario is to load-balance WWW (TCP port 80) and HTTPS (TCP port 443) traffic between web servers. By default we also enable session persistence.
The two most popular load-balancing algorithms that can be used when configuring the VIP on the load balancer are the "round robin" and "least connections" algorithms. The round robin algorithm sends each new request to the next server in line--a very basic setup. The least connections algorithm keeps track of how many sessions are currently live on each server, and sends each new session to the server that currently has the least amount of activity. Between the two, least connections is the more popular selection.
When selecting an operational mode, you also need to consider whether your websites require persistence. This feature, if enabled, allows you to make sure that a session doesn't shift to another server halfway through the transaction. This is often necessary on stateful sites that have SSL, shopping carts, etc. There are two basic methods that can be applied when configuring persistence on the VIP -- one method functionally links the WWW and HTTPS traffic to the same server, per source. This method is good for sites that will use shopping carts or other dynamic content where the customer will shift between the WWW and HTTPS sites, maintaining server-side session information during the transition. The downside is that if both ports don't show as active and listening for connections, the server is flagged as down and taken out of rotation. This does carry with it an additional risk, just because if your servers had an issue down the road that caused them to not be listening on both ports, users will see no website at all.
The alternate configuration would separate the WWW and HTTPS traffic into two different virtual groups. This would allow each server to show as "up" and active even though they're not listening on port 443 currently, but takes away the load-balancer's ability to link both the port 80 and port 443 traffic from a client to the same server persistently. If the standard and SSL sites for your configuration exist as wholly separate entities, this may be a valid alternative.
If you have any questions regarding the load-balancer's configuration please let us know. We will complete its configuration once you have supplied us with the following information:
01 - Which services/ports do you want to be load-balanced (e.g., WWW/80, HTTPS/443)?
No -- only using https for phpMyAdmin
02 - For each service/port being load-balanced, which servers (specifically, which servers' IPs) do you want the load-balancer to direct the traffic to?
example:
VIP 123.123.123.123 will redirect WWW traffic to:
192.168.1.111 (primary IP of server 12345)
192.168.1.112 (primary IP of server 12346)
Use only the web servers IPs that you want to load balance...
You can't do this with database servers.
03 - (answer this question only if you use both WWW and HTTPS sites) Do you want session persistence to be maintained between WWW and HTTPS sites?
No.
04 - Please note: we will configure the load-balancer to use the "least connections" load-balancing algorithm and also enable session persistence unless you specify otherwise.
OK.
Labels: load balancing, web server