The set class-of-service scheduler weight command sets scheduler weight for a CPU queue, CoPP uses WRR algorithm for queue scheduling.
set class-of-service scheduler <scheduler-name> weight <value>
Specifies a CoPP scheduler name, the value is a string, spaces are not allowed.
Specifies scheduler weight.
The value is an integer that ranges from 1 to 32, refer to Table 2 for default value of the scheduler weight.
Weighted Round Robin (WRR) algorithm ensures that packets in all the queues are scheduled in turn.
When using WRR scheduling, it is necessary to set weight for each queue. The device schedules queues in turn according to their weight value. A bigger weight value indicates a higher priority.
It is NOT recommended to use the weight value for CPU queue scheduling due to hardware restrictions.
• Set scheduler weight for copp-scheduler3 to 30.