Balancing loads among WAD workers
As WAD workers balance load based on client source IP addresses, WAD workers for IPs with considerably more traffic than the others can see higher CPU core usage than the other WAD workers. You can fine tune the load balancing among WAD workers in the following ways:
-
Disable dispatching traffic to WAD workers based on source affinity using the following command:
config system global
set wad-source-affinity disable
end
-
If you know which client IPs are the top traffic sources, you can explicitly exclude these IPs from proxy affinity using the
set src-affinity-exempt-addr
command under config web-proxy global.In the following example, traffic from IP
10.10.1.2
hits one single wad worker "wad 1619":Run Time: 0 days, 17 hours and 30 minutes
4U, 0N, 2S, 93I, 0WA, 0HI, 1SI, 0ST; 3941T, 2001F
wad 1619 S 25.1 1.7 0
miglogd 1762 S 1.4 1.1 0
forticron 1567 S 0.7 0.9 0
hasync 1585 S < 0.7 0.9 0
hatalk 1584 S < 0.7 0.7 0
Run Time: 0 days, 17 hours and 30 minutes
6U, 0N, 2S, 91I, 0WA, 0HI, 1SI, 0ST; 3941T, 2001F
wad 1619 S 27.5 1.7 1
hasync 1585 S < 1.0 0.9 0
newcli 4276 R 1.0 0.6 3
node 1937 S 0.5 2.5 2
miglogd 1762 S 0.5 1.1 1
Run Time: 0 days, 17 hours and 30 minutes
6U, 0N, 1S, 92I, 0WA, 0HI, 1SI, 0ST; 3941T, 2001F
wad 1619 R 27.8 1.7 3
miglogd 1761 S 0.9 1.0 0
hasync 1585 S < 0.9 0.9 1
hatalk 1584 S < 0.9 0.7 1
You can exclude this IP (
10.10.1.2
) from proxy affinity by running the following command:FPX31 # config web-proxy global
FPX31 (global) # set src-affinity-exempt-addr 10.10.1.2
FPX31 (global) # end
After the IP is excluded from proxy affinity, traffic from
10.10.1.2
is handled by four wad workers instead of one, as shown below:FPX31 # dia sys top 2 10
Run Time: 0 days, 17 hours and 31 minutes
6U, 0N, 1S, 92I, 0WA, 0HI, 1SI, 0ST; 3941T, 2039F
wad 1620 S 7.5 1.7 3
wad 1621 S 7.0 1.7 1
wad 1618 S 6.5 1.7 1
wad 1619 S 6.5 1.7 1
Run Time: 0 days, 17 hours and 31 minutes
5U, 0N, 2S, 92I, 0WA, 0HI, 1SI, 0ST; 3941T, 2039F
wad 1620 S 7.4 1.7 2
wad 1619 S 7.4 1.7 3
wad 1621 S 6.9 1.7 1
wad 1618 S 6.4 1.7 3
Run Time: 0 days, 17 hours and 31 minutes
7U, 0N, 1S, 91I, 0WA, 0HI, 1SI, 0ST; 3941T, 2038F
wad 1618 S 7.0 1.7 0
wad 1619 S 7.0 1.7 3
wad 1621 S 6.5 1.7 3
wad 1620 S 6.0 1.7 2