< Home

httpclass (virtual server view)

Function

The httpclass command enables a virtual server to reference an HTTP scheduling policy profile.

The undo httpclass command deletes the referenced HTTP scheduling policy profile.

Format

httpclass httpclass-name

undo httpclass [ httpclass-name ]

Parameters

Parameter Description Value
httpclass-name Specifies the name of an HTTP scheduling policy profile. The specified HTTP scheduling policy profile must already exist.

Views

Virtual server view

Default Level

2: Configuration level

Usage Guidelines

When the virtual server protocol type is HTTP, you can run the httpclass httpclass-name command to reference an HTTP scheduling policy profile. HTTP access request packets of different types (URL, HOST, Referer, and Cookie) match with the HTTP scheduling policy profiles. Load balancing is implemented in the group associated with the HTTP scheduling policy profiles. Each virtual server can reference a maximum of eight HTTP scheduling policy profiles. The priority is matched according to the reference sequence. If an HTTP scheduling policy profile of high priority is matched successfully, it does not go on matching. The httpclass move command is used to adjust the matching priority of an HTTP scheduling policy profile.

When the virtual server protocol type is HTTPS, you can run this command to enable the load balancing function if SSL uninstallation is enabled.

Example

# Enable a virtual server to reference HTTP scheduling policy profile abc.

<sysname> system-view
[sysname] slb
[sysname-slb] vserver 0 a
[sysname-slb-vserver-0] httpclass abc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >