Skip to main content

Configure Application Rules

Application Rules are a method of traffic management 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 Products → VMware-based Cloud → Cloud Director.

  2. Open your virtual data center page.

  3. Go to Networking → Edges.

  4. Open the page of the required Edge.

  5. Click SERVICES.

  6. Open the Load Balancer → Application Rules tab.

  7. Click +.

  8. Enter a rule name.

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

    If the primary pool is down, traffic can be redirected to another load balancing pool. For the rule to work, multiple 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> — name of the primary pool;
    • <secondary_pool_name> — 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 Products → VMware-based Cloud → Cloud Director.
  2. Open your virtual data center page.
  3. Go to Networking → Edges.
  4. Open the page of the required Edge.
  5. Click SERVICES.
  6. Open the Load Balancer → Virtual Servers tab.
  7. Select the virtual server.
  8. Click .
  9. Open the Advanced tab.
  10. Click +.
  11. Add a rule.