priority scheduler-mode

Function

The prioriy scheduler-mode command configures a scheduling mode for a user queue scheduler with a specified priority in a user queue profile.

The undo prioriy scheduler-mode command restores the default scheduling mode for a user queue scheduler with a specified priority.

By default, the scheduling mode of user queue schedulers with priorities 0 and 2 is PQ, and the scheduling mode of user queue schedulers with priorities 1 and 3 is WFQ.

Format

priority priority scheduler-mode { pq | wfq }

undo priority priority scheduler-mode { pq | wfq }

Parameters

Parameter Description Value
priority priority

Specifies a priority for a user queue scheduler.

The value is an integer that ranges from 0 to 3.

pq

Specifies the scheduling mode of a queue as PQ scheduling.

-

wfq

Specifies the scheduling mode of a queue as WFQ scheduling.

-

Views

User queue template

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

In a user queue profile, you can configure scheduling parameters such as scheduling modes, scheduling priorities, scheduling weights, and shaping values for four user queue schedulers, so that the user queue schedulers can process traffic differently.

To change the scheduling mode of a user queue scheduler with a specified priority, run this command. If no scheduling mode is set, the default scheduling mode is used to schedule traffic.

Example

# Set the scheduling mode of a user queue scheduler with the priority of 3 to PQ.
<HUAWEI> system-view
[~HUAWEI] user-queue test
[*HUAWEI-user-queue-template-test] priority 3 scheduler-mode pq
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >