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 Application Profiles or through other services on the Edge router.

Create rule

  1. From Control Panel, open the Cloud Director panel: Cloud powered by VMwareCloud Director.

  2. Open the virtual data center page.

  3. Go to NetworkingEdges.

  4. Open the page of the desired Edge.

  5. Press SERVICES.

  6. Open the Load BalancerApplication Rules tab.

  7. Press +.

  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 main pool must be in the down state. Script view:

    acl pool_down nbsrv(<primary_pool_name>) eq 0
    use_backend <secondary_pool_name> if <primary_pool_name>

    Specify:

    • <primary_pool_name> is the name of the main pool;
    • <secondary_pool_name> — the name of the pool to which the traffic will be redirected.
  10. Press KEEP.

Add a rule to the virtual server

  1. From Control Panel, open the Cloud Director panel: Cloud powered by VMwareCloud Director.
  2. Open the virtual data center page.
  3. Go to NetworkingEdges.
  4. Open the page of the desired Edge.
  5. Press SERVICES.
  6. Open the Load BalancerVirtual Servers tab.
  7. Highlight virtual server.
  8. Click .
  9. Open the Advanced tab.
  10. Press +.
  11. Add rule.