Setting a weight and priority

Perform this task to configure a weight for the weighted round robin and weighted least connection algorithms of a link, and the scheduling priority in the link group for the server.

To set a weight and priority for a link:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter link view.

loadbalance link link-name

N/A

3. Set a weight for the link.

weight weight-value

By default, the weight of a link is 100.

4. Set a priority for the link.

priority priority

By default, the priority of a link is 4.