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 other services on the Edge router.

Create a rule

  1. From the Control Panel, open the Cloud Director panel: from the top menu, click ProductsVMware-based CloudCloud 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 this rule to work, multiple pools must be configured on the balancer. All members of the primary 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> — name of the primary pool;
    • <secondary_pool_name> — name of the pool to which traffic will be redirected.
  10. Press KEEP.

Add a rule to a virtual server

  1. From the Control Panel, open the Cloud Director panel: from the top menu, click ProductsVMware-based CloudCloud 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 the virtual server.
  8. Click .
  9. Open the Advanced tab.
  10. Press +.
  11. Add a rule.