config global-load-balance : config global-load-balance virtual-server-pool
 
config global-load-balance virtual-server-pool
Use this command to configure the virtual server pool. The virtual server pool configuration defines the set of virtual servers that can be matched in DNS resource records, so it should include, for example, all the virtual servers that can be responses for DNS requests to resolve www.example.com. You also specify the key parameters of the global load balancing algorithm, including proximity option, status checking options, load balancing method, and weight.
Before you begin:
You must have created the global load balance server configuration and you must know the names of the virtual servers that have been populated in that configuration.
You must have read-write permission for global load balancing settings.
After you have created a virtual server pool configuration object, you can specify it global load balancing host configuration.
Syntax
config global-load-balance virtual-server-pool
edit <name>
set check-server-status {enable|disable}
set check-virtual-server-existence {enable|disable}
set default-feedback-ip <class_ip>
set default-feedback-ip6 <class_ip>
set load-balance-method wrr
set proximity {GEO|GEO-ISP|NONE}
config member
edit <No.>
set backup {enable|disable}
set server <datasource>
set server-member-name <string>
set weight <integer>
next
end
next
end
check-server-status
Enable/disable polling of the local FortiADC SLB. If the server is unresponsive, its virtual servers are not selected for DNS answers.
check-virtual-server-existence
Enable/disable checks on whether the status of the virtual servers in the virtual server list is known. Virtual servers with unknown status are not selected for DNS answers.
default-feedback-ip
Specify an IP address to return in the DNS answer if no virtual servers are available.
default-feedback-ip6
Specify an IPv6 address to return in the DNS answer if no virtual servers are available.
load-balance-method
Only weighted round-robin is supported.
proximity
None—Proximity not used.
GEO—Proximity based on geolocation.
GEO-ISP—Proximity based on IP address belonging to an ISP address group first, then geolocation.
config member
backup
Enable to designate the pool as a backup member of the group. All backup members are inactive until all main members are down.
server
Specify a global server load balancing servers configuration object.
server-member-name
Specify the name of the virtual server that is in the servers virtual server list configuration.
weight
Assigns relative preference among members—higher values are more preferred and are assigned connections more frequently.
The default is 1. The valid range is 1-255.
Example
FortiADC-VM # config global-load-balance virtual-server-pool
FortiADC-VM (virtual-server~p) # edit pool_test
Add new entry 'pool_test' for node 2858
FortiADC-VM (pool_test) # get
proximity : NONE
check-server-status : disable
check-virtual-server-existence: disable
load-balance-method : wrr
default-feedback-ip : 0.0.0.0
default-feedback-ip6: ::
FortiADC-VM (pool_test) # set proximity GEO-ISP
FortiADC-VM (pool_test) # set default-feedback-ip 1.1.1.1
FortiADC-VM (pool_test) # set default-feedback-ip6 2001::1:100
FortiADC-VM (pool_test) # config member
FortiADC-VM (member) # edit 1
Add new entry '1' for node 2864
FortiADC-VM (1) # get
server :
server-member-name :
weight : 1
backup : disable
FortiADC-VM (1) # set server neighbor1
FortiADC-VM (1) # set server-member-name vs-1
FortiADC-VM (1) # set weight 2
FortiADC-VM (1) # next
FortiADC-VM (member) # edit 2
Add new entry '3' for node 2864
FortiADC-VM (2) # set server neighbor1
FortiADC-VM (2) # set server-member-name vs-2
FortiADC-VM (2) # next
FortiADC-VM (3) # set server neighbor2
FortiADC-VM (3) # set server-member-name vs-3
FortiADC-VM (3) # set weight 2
FortiADC-VM (3) # next
FortiADC-VM (member) # edit 2
Add new entry '4' for node 2864
FortiADC-VM (4) # set server neighbor2
FortiADC-VM (4) # set server-member-name vs-4
FortiADC-VM (4) # end
FortiADC-VM (pool_test) # end