On this page
Give each integration a MID Server whose capabilities and IP range match it, group servers that do the same work into one cluster, and pick the cluster type on purpose. Load Balance spreads work across members. Failover keeps an ordered standby. Keep JDBC, LDAP and export set sources off clusters: ServiceNow says they need dedicated, non-clustered MID Servers.
This guide covers the settings that decide whether a MID Server survives a bad night. If you want a second pair of eyes on a design, our ServiceNow consulting page explains how a review works. Everything below is from ServiceNow's own documentation, read on 3 December 2026; check it against your release.
What does a MID Server host need before you install it?
A MID Server host needs outbound TCP 443 to the instance and nothing inbound. ServiceNow's connection prerequisites also list a proxy entry, upgrade access and certificate checks, and each can stop a MID Server from working.
- Allow outbound TCP 443 from the host to the instance. ServiceNow suggests a telnet test on port 443; a failure points at a proxy or firewall rule.
- If a proxy is used, add its details to the MID Server's
config.xml. - Allow access to
install.service-now.com. Automatic upgrades download from it; if you block it, import the installer package by hand. - Do not block the DigiCert OCSP servers. ServiceNow notes that blocking them can stop the MID Server working.
- Set capabilities and IP ranges. Selection filters run in this order: server status, application, IP range, then capabilities, and a requested capability that does not exist raises an error instead of falling back.
Which cluster type should you choose?
Choose Failover when one server should do the work and another should wait. Choose Load Balance when several equal servers should share it. Both are set on the cluster record, and members should have the same capabilities.
| Type | How work is placed | When a member fails | Watch for |
|---|---|---|---|
| Load Balance | The application balances work between the members. | Members should share the same capabilities. Size them so the survivors can carry the load (our design advice, not a ServiceNow figure). | Not for JDBC, LDAP or export set data sources. |
| Failover | Each member has a configured order. Members work independently and do not balance with each other. | The MID Server Cluster Management business rule selects the highest available member in the order. | If no member has the right capabilities, the mid_server.cluster.down event fires. Wire it to alerting. |
What happens to work when a MID Server fails?
Most work moves to the next member, but some does not. ServiceNow documents three exceptions, and the first one produces duplicate rows.
- JDBC. A failover can restart from the beginning of the ECC queue task, so data already returned may arrive twice. Design loads so a rerun updates rows instead of inserting them.
- Command and SystemCommand. Clustering does not support these ECC queue topics, so those records stay unprocessed.
- Shazzam probes. If a MID Server fails during a Shazzam probe with auto-selection, failover is not available and discovery stops.
To trace a waiting job, read ecc_queue: Agent, Topic, Name, State and Payload. The MID Server polls every 40 seconds by default and also listens on an AMB channel, so a missed notification delays work by at most one poll.
How do memory and thread settings work?
The JVM heap defaults to 1024 MB. Set it with wrapper.java.maxmemory in agent\conf\wrapper-override.conf, remove the comment tag from that line, and restart the service. From Zurich you can also set it from the instance with MID Server profiles.
Threads come in three pools: threads.interactive.max, threads.expedited.max and threads.max. The standard pool defaults to 25 in config.xml. ServiceNow says it can go as high as 200, but PowerShell-heavy Discovery on Windows can exhaust CPU at around 50 threads, Windows can run out of file handles, and each thread needs memory. If you add threads and see out-of-memory errors, raise the heap too.
How do upgrades affect a cluster?
Plan a cluster upgrade as a single outage unless you have tested otherwise. When an instance upgrades, it sends an autoUpgrade command to connected MID Servers whose version no longer matches, and each MID Server also checks hourly. ServiceNow states that all connected MID Servers receive the command at the same time and can upgrade concurrently. During the upgrade the status is Upgrading, similar to Paused.
The pages we read do not say members are staggered, so treat that as our reading, not a ServiceNow promise. Pinning with mid.version.override disables automatic upgrades, but ServiceNow does not recommend it because mismatched versions can cause outages.
A written design for placement, clusters and dedicated JDBC servers is what our MID Server design use case describes.
Sources
- www.servicenow.com/docs/r/servicenow-platform/mid-server/t_ConfigureAMIDServerCluster.html
- www.servicenow.com/docs/r/servicenow-platform/mid-server/c_MIDServerConnectionPrerequisites.html
- www.servicenow.com/docs/r/servicenow-platform/mid-server/ecc-queue-mid-server.html
- www.servicenow.com/docs/r/servicenow-platform/mid-server/t_ConfigureCapabilities.html
- www.servicenow.com/docs/r/servicenow-platform/mid-server/t_SetMIDServerThreadUse.html
- www.servicenow.com/docs/r/servicenow-platform/mid-server/t_MIDServerOptionalConfiguration.html
- www.servicenow.com/docs/r/servicenow-platform/mid-server/c_UpgradeAndTestMIDServer.html
Frequently Asked Questions
Should JDBC loads run through a MID Server cluster?
No. ServiceNow says LDAP, export set and JDBC data sources should not be used with MID Server clusters. A failover MID Server can restart a JDBC load from the beginning, which may duplicate data. Use a dedicated, non-clustered MID Server.
How often does a MID Server poll the ECC queue?
Every 40 seconds by default (mid.poll.time), even when AMB notifications are active, so a dropped AMB connection does not stall work. A busy MID Server switches to mid.poll.time.standard, 5 seconds by default.
Does a MID Server need inbound firewall ports?
No. ServiceNow says it requires no inbound connections. It needs outbound TCP 443 from the host to the instance, plus access to install.service-now.com for automatic upgrades.
Talk to an engineer
Need a hand with ServiceNow?
Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

