How to Configure Advanced Load Balancer

During the configuration of a Load balancer, we have to select the option of load balancer backend type. Classic load balancing in its simplest term distributes the incoming traffic across multiple compute nodes based on balancing policy. Your load balancer IP serves as a single point of contact for your clients increasing the availability of your application. While in Advance load balancing, We will be able to define advance access rules on path-based and Host-based conditions.


The access rules and routing rule that we define will determine how the load balancer will route requests to the backend servers.

Advance Access rule

To create a new access rule, Click on Add New rule


Access rules can be added based on two conditions. Path-based condition and Host-based condition. Enter The Name of Access rule, Select the condition and Path/URL details.

  • Path Based Condition - You can use path conditions to define rules that route requests based on the URL in the request. The path pattern is applied only to the path of the URL, not to its query parameters. For example, In the below image the path is added
  • Host Based Condition - You can use host conditions to define rules that route requests based on the hostname in the host header known as host-based routing. For example, In below image, the host is added as

Backend Resource Details

In Backend Resource Details, We need to configure the backend connection of your load balancer as per your requirement.

You can specify a name or tag to group backend nodes and it will help categorize your node

  • To add a backend, Click on Add backed and enter the backend name.
  • To add Backend server, click on Edit backend Icon and backend resource details.
  • In the Node Details section, you need to specify the details of the virtual nodes you wish to register behind the Load Balancer.
  • You can use the ‘+ Add node’ button to add more node detail to the load balancer.

Similarly, You need to add the required backend for your Load Balancer


Routing Rule

Once, Access rule and Backend resource details have been configured, click on Add rules and Select the Advance Rule, Condition and Backend Resources.


The routing rules allow you to use rules conditions that use the route traffic to the desired backend resources.

In the above example, We have used the rules created is_testpath and is_testhost
for the condition true, We have route traffic to backend-server-1 and backend-server-2 respectively.