Create a shared configuration file

Create a shared configuration file so that servers in the HA environment can share common elements.

About this task

To ensure that both servers in the HA environment can handle the same workload, some elements from the server.xml file for each server are shared from a common configuration file. Configuration elements that are unique to a server are defined in a separate server.xml file.

Procedure

  1. Create directories under /var/zosconnect to store the shared configuration file.
    For example, run the following command from the /var/zosconnect directory.
    mkdir -p shared/config
  2. Move the current server.xml file that is used by haserver1 to the shared configuration directory and rename it to haserver.xml.
    For example, run the following command as a single line:
    mv /var/zosconnect/servers/haserver1/server.xml
    /var/zosconnect/shared/config/haserver.xml
  3. Create a file named server.xml for haserver1 in the /var/zosconnect/servers/haserver1 directory with the following elements:
    
    <?xml version="1.0" encoding="UTF-8"?>
    <server description="z/OS Connect HA server1">
       <include location="${shared.config.dir}/haserver.xml"/>
    </server> 
    This configuration file includes the shared haserver.xml by using the Liberty property ${shared.config.dir} to reference the directory that contains the shared configuration files. This property points to the directory WLP_USER_DIR/shared/config.