How to Load Balancing Multiple Sites with a Single IP address using SubVSs
Scope
To enable load balancing of multiple sites or applications using a single virtual IP address.
By using Sub-Virtual Services (SubVSs), each SubVS is treated as a regular Virtual Service, providing the ability to perform separate high-level health checks and use separate scheduling and persistence settings for each site.
Solution
To achieve this, use content switching in conjunction with SubVSs.
Assuming there are two server pools, create two content rules matching on host headers, and three
SubVSs. The third SubVS is used as a "catch all" for any host headers that do not match.
To create a rule, in the LoadMaster Web User Interface (WUI) go to Rules & Checking > Content Rules > Create New.
Rule 1
Rule 2
Create three SubVSs. To do this, go to Virtual Services > View/Modify Services > Modify > Real Servers > Add SubVS.
Name each SubVS accordingly, for example Pool-1 and configure each SubVS as a regular Virtual Service. This includes adding the pool of servers.
Enable Content Switching in the Advanced Properties section of the Virtual Service settings. If traffic is encrypted you will need to enable SSL Acceleration which is located in the SSL Properties section within the Virtual Service.
Assign Rules to Server Pools
Navigate to SubVSs > Rules. Apply the previously created Content Rule Pool1 to the Pool-1 SubVS and apply Content Rule Pool2 to the Pool-2 SubVS.
Apply the Default rule to the Default SubVS.
Testing
In your browser, enter the address, for example, web1.domain.com. You should receive the expected response from a server within Pool-1.
Comments
i need help setting up a site.
Hi Randy,
If you could reach out to support via Phone or email, one of the engineers will gladly be able to assist you.
rich.liberty
Rule 1 and Rule 2 are the same in this example?