Server groups
A server definition can use configuration variables to represent the server's host name, user ID, and password. A server group links a server definition to a specific value defined for the configuration variable. When a map deploys to the server, the server group determines how the configuration variable resolves.
For example, an administrator who wants to deploy maps to either a test server or a production
server might set up deployment as follows:
- Define two server groups:
- TEST_GROUP
- PROD_GROUP
- Define a configuration variable called HOSTNAME with the following values for each server group:
Server Group HOSTNAME Values TEST_GROUP TEST_HOST PROD_GROUP PROD_HOST - Define the servers, specifying each server's host name as the HOSTNAME configuration
variable:
Server Name Host Name Server Group TEST_SERVER %HOSTNAME% TEST_GROUP PROD_SERVER %HOSTNAME% PROD_GROUP
- When the administrator deploys a map to the server named TEST_SERVER, the server host name resolves to the value TEST_HOST.
- When the administrator deploys a map to the server named PROD_SERVER, the server host name resolves to the value PROD_HOST.
Defining a server group is optional. A server group is not required for deployment.