Skip to main content

Configure Application Rules

Last update:

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

  1. From the control panel, open the Cloud Director panel: in the top menu, click ProductsVMware-based cloud → section Cloud Director.

  2. Open your virtual data center page.

  3. Go to the NetworkingEdges.

  4. Open the page of the required Edge.

  5. Click SERVICES.

  6. Open the Load BalancerApplication Rules.

  7. Click +.

  8. Enter a rule name.

  9. Paste the script that will determine the load balancing:

    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 down state. Script format:

    acl pool_down nbsrv(<primary_pool_name>) eq 0
    use_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.
  10. Click KEEP.

Add a rule to a virtual server

  1. From the control panel, open the Cloud Director panel: in the top menu, click ProductsVMware-based cloud → section Cloud Director.
  2. Open your virtual data center page.
  3. Go to the NetworkingEdges.
  4. Open the page of the required Edge.
  5. Click SERVICES.
  6. Open the Load BalancerVirtual Servers.
  7. Select a virtual server.
  8. Click .
  9. Open the Advanced tab.
  10. Click +.
  11. Add a rule.