< Home

url(HTTP scheduling policy profile view)

Function

The url command creates a URL matching rule.

The undo url command deletes a URL matching rule.

Format

url pattern-string mode { prefix | suffix | exact | any }

undo url pattern-string mode { prefix | suffix | exact | any }

Parameters

Parameter Description Value
pattern-string Specifies the matching string. When the matching type is URL, the string length after pre-processing cannot be less than 2. Pre-processing means the removal of prefixes "http://" or "https://" in a string. The value is a string of 2 to 128 characters.
mode Indicates the matching mode. -
prefix Indicates the prefix matching mode. -
suffix Indicates the suffix matching mode. -
exact Indicates the exact matching mode. -
any Indicates the any matching mode. -

Views

HTTP scheduling policy profile view

Default Level

2: Configuration level

Usage Guidelines

In an HTTP server cluster, different URLs correspond to different real servers. Load balancing is based on the URLs.

For URL-based SLB:
  • When an HTTP request packet matches a sticky session entry, the packet is distributed based on the entry.
  • When selecting a new real server for load balancing, select the real server associated with the HTTP requested URL.

Example

# Create HTTP scheduling policy profile abc, add the url rule, and set the matching mode to exact.

<sysname> system-view
[sysname] slb
[sysname-slb] httpclass abc
[sysname-slb-httpclass-0] url example.com/abc.jng mode exact
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >