How the weight value supports asymmetric load distribution
The weight value is unique to each service group and node. The weight value does not propagate around the cluster and must be set individually on every node in the cluster.
The value of weight, relative to the settings on other cluster members, determines the proportion of traffic that WCCP directs to the node.
By default, weight is set to 0, which results in equal distribution to all cluster members.
To achieve asymmetric distribution, weight is set relative to other members of the cluster. For example, assume a cluster of 3 nodes:
Node | Weight value | Load distribution |
---|---|---|
Node1 | 50 | 50% |
Node2 | 25 | 25% |
Node3 | 25 | 25% |
If Node1 goes offline, Node2 and Node3 will get an equal amount of traffic. If Node3 goes offline, Node1 will get two thirds of the traffic and Node2 will get one third of the traffic.
Because the weight value is relative to the settings on other cluster nodes, the same distribution as above can be achieved with weight values of 10, 5, 5. (The valid range of weight is 0-255.)
If weight is changed from its default value of 0, it should be configured on all nodes in the cluster.