Skip to main content
Customize Application Rules
Last update:

Customize Application Rules

Application Rules — A way to manage traffic based on specific requests. You can create advanced load balancing rules that cannot be configured through the Application Profiles or by using other services on the Edge router.

Create a rule

  1. From control panels open the Cloud Director panel: VMware-based cloudCloud Director.

  2. Open the virtual data center page.

  3. Go to the section NetworkingEdges.

  4. Open the page of the desired Edge.

  5. Click SERVICES.

  6. Open the tab Load BalancerApplication Rules.

  7. Click +.

  8. Enter the name of the rule.

  9. Insert a script that will determine the balancing:

    If the primary pool fails, traffic can be redirected to another balancing pool. For the rule to work, multiple pools must be configured on the balancer. All members of the primary pool must be in the state of down. Script view:

    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 main pool;
    • <secondary_pool_name> — name of the pool to which the traffic will be redirected.
  10. Click KEEP.

Add a rule to a virtual server

  1. From control panels open the Cloud Director panel: VMware-based cloudCloud Director.
  2. Open the virtual data center page.
  3. Go to the section NetworkingEdges.
  4. Open the page of the desired Edge.
  5. Click SERVICES.
  6. Open the tab Load BalancerVirtual Servers.
  7. Highlight virtual server.
  8. Click .
  9. Open the tab Advanced.
  10. Click +.
  11. Add rule.