Fortinet white logo
Fortinet white logo

Session-Aware Load Balancing Cluster Guide

5.2.11

Changing the load distribution method

Changing the load distribution method

Go to Load Balance > Session > Setup > Load Distribution to change the load distribution method used by the cluster. The default load distribution method is src-dst-ip-sport-dport which means sessions are identified by their source address and port and destination address and port.

You can change the load distribution method using the following CLI command:

config load-balance session-setup

set load-distribution {round-robin | src-ip | dst-ip | scr-dst-ip | src-ip-sport | dst-ip-dport | src-dst-ip-sport-dport}

end

The following load balancing schedules are also available:

round-robin Directs new requests to the next slot regardless of response time or number of connections. Round robin is only supported if TCP or UDP local ingress is enabled.
src-ip The traffic load is distributed across all slots according to source IP address.
dst-ip The traffic load is statically distributed across all slots according to destination IP address.
src-dst-ip The traffic load is distributed across all slots according to the source and destination IP addresses.
src-ip-sport The traffic load is distributed across all slots according to the source IP address and source port.
dst-ip-dport The traffic load is distributed across all slots according to the destination IP address and destination port.
src-dst-ip-sport-dport The traffic load is distributed across all slots according to the source and destination IP address, source port, and destination port. This is the default load balance schedule and represents true session-aware load balancing.

Changing the load distribution method

Changing the load distribution method

Go to Load Balance > Session > Setup > Load Distribution to change the load distribution method used by the cluster. The default load distribution method is src-dst-ip-sport-dport which means sessions are identified by their source address and port and destination address and port.

You can change the load distribution method using the following CLI command:

config load-balance session-setup

set load-distribution {round-robin | src-ip | dst-ip | scr-dst-ip | src-ip-sport | dst-ip-dport | src-dst-ip-sport-dport}

end

The following load balancing schedules are also available:

round-robin Directs new requests to the next slot regardless of response time or number of connections. Round robin is only supported if TCP or UDP local ingress is enabled.
src-ip The traffic load is distributed across all slots according to source IP address.
dst-ip The traffic load is statically distributed across all slots according to destination IP address.
src-dst-ip The traffic load is distributed across all slots according to the source and destination IP addresses.
src-ip-sport The traffic load is distributed across all slots according to the source IP address and source port.
dst-ip-dport The traffic load is distributed across all slots according to the destination IP address and destination port.
src-dst-ip-sport-dport The traffic load is distributed across all slots according to the source and destination IP address, source port, and destination port. This is the default load balance schedule and represents true session-aware load balancing.