Configure Application Rules
Application Rules is a way to manage traffic based on specific requests. You can create advanced load balancing rules that cannot be configured via Application Profiles or using other services on the Edge router.
Create a rule
-
From the control panel, open the Cloud Director panel: in the top menu, click Products → VMware-based cloud → section Cloud Director.
-
Open your virtual data center page.
-
Go to the Networking → Edges.
-
Open the page of the required Edge.
-
Click SERVICES.
-
Open the Load Balancer → Application Rules.
-
Click +.
-
Enter a rule name.
-
Paste the script that will determine the load balancing:
To another pool
To an external resource
If the primary pool is not working, traffic can be redirected to another load balancing pool. For the rule to work, several pools must be configured on the load balancer. All members of the primary pool must be in the
downstate. Script format:acl pool_down nbsrv(<primary_pool_name>) eq 0use_backend <secondary_pool_name> if <primary_pool_name>Specify:
<primary_pool_name>— the name of the primary pool;<secondary_pool_name>— the name of the pool to which traffic will be redirected.
-
Click KEEP.
Add a rule to a virtual server
- From the control panel, open the Cloud Director panel: in the top menu, click Products → VMware-based cloud → section Cloud Director.
- Open your virtual data center page.
- Go to the Networking → Edges.
- Open the page of the required Edge.
- Click SERVICES.
- Open the Load Balancer → Virtual Servers.
- Select a virtual server.
- Click .
- Open the Advanced tab.
- Click +.
- Add a rule.