Installing Multiple MID Servers on a single Windows system
You can install multiple MID Servers on a single host or on a virtual machine using Windows. This is useful when one MID Server is down so another can take its place. Note that installing multiple MID Servers might involve additional setup steps, depending on your network configuration.
Procedure
To install a MID Server on a single Windows system, complete the following steps.
- Download the MID Server archive file.
- From the ServiceNow portal, click Mid Server > Downloads.
- Select and download the MID Server for the appropriate operating system.
If the download does not begin immediately, try the download later as the system may be busy.
- From the system or virtual machine where you want to install multiple MID Servers, create a directory for each MID Server on the top level of the drive using unique and distinctive names (for example, ServiceNow\MIDServer_SMS_Int or ServiceNow\MIDServer_Disc1).
- Extract the downloaded MID Server file into each MID Server directory. When complete, the \agent directory is in under each MID Server directory (for example, \ServiceNow\MIDServer_SMS_Int\agent).
- For each Windows MID Server, edit the \agent\config.xml file using a text editor (such as WordPad), as follows:
Locate the <parameter name="url" value="https://YOUR_INSTANCE.service-now.com" /> element, and change the value to the URL of your ServiceNow instance.
If basic authentication is enabled, enter the MID Server user credentials in the mid.instance.username and mid.instance.password parameters.
NoteBasic authentication for SOAP messages is enabled by default. The password value is also encrypted authentication.Locate the <parameter name="name" value="YOUR_MIDSERVER_NAME_GOES_HERE" /> element, and change the value to the name of your MID Server.
Optionally, enter the connection information for a proxy server that is used, and remove the comment tags from the proxy configuration information. For example, you can configure the mid.proxy.use_proxy, mid.proxy.host, mid.proxy.port, mid.proxy.username, and mid.proxy.password.
- For each Windows MID Server, edit the \agent\conf\wrapper-override.conf file with a text editor, and enter the following configuration information.AttentionDo not edit the
wrapper.conf file, which contains the default configuration for the MID Server. Any future ServiceNow upgrades overwrite the contents of the wrapper.conf file but not the wrapper-override.conf file. wrapper.name. The MID Server process, maps to the Service name, and must be unique. The default value is snc_mid.
wrapper.displayname. The display name in the Windows Services console (for example, ServiceNow DevMID01). The default value is ServiceNow MID Server.
(Optional) wrapper.java.command. The path to the Java \bin directory, either relative to the agent directory or absolute. The default value is jre/bin/java.
(Optional) wrapper.java.initmemory. The initial Java heap size in MB. The default value is 10.
(Optional) wrapper.java.maxmemory. The maximum Java heap size in MB. The default is 512.
TipThese values cannot be edited while the MID Server is running. - Confirm that the MID Server is running.Tip
To start the server, run one of the following commands:
(Windows) start.bat
(Linux) start.xh
To stop the server, run one of the following commands:
(Windows) stop.bat
(Linux) stop.xh
- Optionally, configure MID Server clustering for load balancing or failover as necessary.
- After you configure the MID Server, you can view a list of installed MID Server in the Servers table under the MID Server module.