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.
config global-load-balance data-center
set location <datasource>
set description <string>
Configuration name. No spaces or special characters. You reference this name in the global load balance servers configuration.
Optional description to help administrators know the purpose or usage of the configuration.
Specify a location from the geolocation list.
Note: Starting from FortiADC 5.0.0, you are required to the country or city code instead of the full name of the country or city.
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
FortiADC-VM (dc1) # set location CN
FortiADC-VM (dc1) # end