config global-load-balance : config global-load-balance data-center
 
config global-load-balance data-center
Use this command to create data center configurations that you associate with the server configurations for local FortiADCs. The data center configuration sets key properties: Location and/or ISP and ISP province. These properties are keys in the global load balancing algorithm that selects the FortiADC in closest proximity to the client.
The system includes the FortiGuard geolocation database and predefined ISP address books that you use in the configuration.
Before you begin:
If you want to specify a user-defined ISP address book, you must create it before using this command.
You must have read-write permission for global load balancing settings.
After you have created a data center configuration object, you can specify it in the global load balance servers configuration.
Syntax
config global-load-balance data-center
edit <name>
set description <string>
set isp <datasource>
set isp-province <datasource>
set location <datasource>
next
end
<name>
Configuration name. No spaces or special characters. You reference this name in the global load balance servers configuration.
description
Optional description to help administrators know the purpose or usage of the configuration.
isp
Specify an ISP address configuration object.
province
If an ISP address book contains addresses for multiple provinces, specify a province to associate with the data center. The province setting is used in GLB deployments in China to enable location awareness that is province-specific. For example, a user can be directed to a data center in Beijing or Guangdong rather than simply China.
location
Specify a location from the geolocation list.
Example
FortiADC-VM # config global-load-balance data-center
FortiADC-VM (data-center) # edit dc-china
Add new entry 'dc1' for node 2836
FortiADC-VM (dc1) # get
location :
isp :
description :
FortiADC-VM (dc1) # set location China
FortiADC-VM (dc1) # set isp china-mobile
FortiADC-VM (dc1) # end