parent-priority weight

Function

The parent-priority weight command configures a scheduling weight for a specified parent scheduler in a user queue profile.

The undo parent-priority weight command restores the default scheduling weight for a specified parent scheduler in a user queue profile.

By default, the scheduling weight of a parent scheduler in a user queue profile is 10.

Format

parent-priority priority weight weight

undo parent-priority priority weight weight

Parameters

Parameter Description Value
priority

Specifies a parent scheduler.

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

weight

Specifies a parent scheduler.

The value is an integer that ranges from 1 to 100.

Views

User queue template

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

In WFQ scheduling mode, a parent scheduler schedules traffic in user queues based on scheduling weights. If traffic congestion occurs, the scheduler schedules the service traffic of users based on the weight ratio between user queues. In the user queue profile view, you can run this command to set a scheduling weight for a specified parent scheduler. If no scheduling weight is set, the parent scheduler schedules traffic based on the default weight.

Precautions

A scheduling weight takes effect only when the scheduling mode of a parent scheduler is WFQ.

Example

# Set the scheduling weight of a parent scheduler with the priority of 0 to 15 in a user queue profile named test.
<HUAWEI> system-view
[~HUAWEI] user-queue test
[*HUAWEI-user-queue-template-test] parent-priority 0 weight 15
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >