Fortinet black logo

CLI Reference

system ha-traffic-distribution

system ha-traffic-distribution

The domain name of your application is paired with one or more IP addresses. These IP addresses are called Virtual IPs in FortiWeb. When your users visit your application, the destination of these requests are these virtual IP addresses. If you have deployed a FortiWeb HA cluster in your network, these requests will arrive first at FortiWeb cluster for threat detection, then be forwarded to the back-end servers. The traffic distribution controls which FortiWeb appliances in the cluster process the traffic destined to certain virtual IPs.

Syntax

config system ha-traffic-distribution

edit <traffic-distribution_name>

set node-order <the_index_of_node_with_highest_priority>

set node-order <the_index_of_node_with_secondary_priority>

set node-order <the_index_of_node_with_third_priority>

...

set vip-list <vip_names>

next

end

Variable Description Default
<traffic-distribution_name> The name of the traffic distribution. N/A

node-order <the_index_of_node_with_highest_priority>

node-order <the_index_of_node_with_secondary_priority>

node-order <the_index_of_node_with_third_priority>

...

The priority order of the nodes that process the traffic to the VIP.

The node with the highest priority processes the traffic to the specified VIPs. If this node is down, the secondary node takes over the traffic, and so on.

N/A

vip-list <vip_names>

The name of the VIP. You can assign the same VIP to different traffic distributions.

N/A

Example

config system ha-traffic-distribution

edit traffic1

set node-order 2

set node-order 3

set node-order 1

set vip-list vip1

next

end

system ha-traffic-distribution

The domain name of your application is paired with one or more IP addresses. These IP addresses are called Virtual IPs in FortiWeb. When your users visit your application, the destination of these requests are these virtual IP addresses. If you have deployed a FortiWeb HA cluster in your network, these requests will arrive first at FortiWeb cluster for threat detection, then be forwarded to the back-end servers. The traffic distribution controls which FortiWeb appliances in the cluster process the traffic destined to certain virtual IPs.

Syntax

config system ha-traffic-distribution

edit <traffic-distribution_name>

set node-order <the_index_of_node_with_highest_priority>

set node-order <the_index_of_node_with_secondary_priority>

set node-order <the_index_of_node_with_third_priority>

...

set vip-list <vip_names>

next

end

Variable Description Default
<traffic-distribution_name> The name of the traffic distribution. N/A

node-order <the_index_of_node_with_highest_priority>

node-order <the_index_of_node_with_secondary_priority>

node-order <the_index_of_node_with_third_priority>

...

The priority order of the nodes that process the traffic to the VIP.

The node with the highest priority processes the traffic to the specified VIPs. If this node is down, the secondary node takes over the traffic, and so on.

N/A

vip-list <vip_names>

The name of the VIP. You can assign the same VIP to different traffic distributions.

N/A

Example

config system ha-traffic-distribution

edit traffic1

set node-order 2

set node-order 3

set node-order 1

set vip-list vip1

next

end