A ServiceNow MID Server cluster is a group of MID Servers that shares the work for one set of integrations, either by splitting the load across members or by letting another member take over when one stops. Choosing between load balancing and fail-over depends on the workload: long, high-volume jobs that can be split suit load balancing, while integrations that must not run twice need a clear owner. The guides on MID Server setup and use cover installation; this page covers how to decide on the cluster design and where it stops protecting you.
Load balancing and fail-over solve different problems
Load balancing is about throughput. When several members are available, work for the cluster is handed out across them, so a large discovery run or a burst of inbound events does not queue behind a single host. Fail-over is about continuity. One member does the work, and when it becomes unavailable another member picks it up. Both live in the same design, but they answer different questions: how fast the integrations run, and what happens when a host disappears.
In practice a cluster often needs both. The skill is knowing which integrations are sensitive to which behavior, and treating the choice as a per-workload decision rather than one setting applied everywhere.
Choose the cluster type from the workload
Start with the integrations that will use the MID Servers, not with the hardware. Ask three questions of each one: does it run for a long time, does it move a lot of data at once, and does running it twice cause harm? Long, high-volume work benefits from load balancing because the members can share it. Work that is sensitive to duplication or ordering needs one owner, which points to fail-over or a dedicated host.
| Workload | Usual pattern | Reason |
|---|---|---|
| Large discovery and data pulls | Load balancing | The work can be split and the runs are long |
| Directory imports | Dedicated host, not clustered | Ordering and duplicate records matter |
| Database integrations | Dedicated host | Connections and local state sit on one machine |
| Exports and file outputs | Dedicated host | A half-written file is hard to reason about after a restart |
Smart Workload Manager can send more work to faster members
Load balancing may not split work evenly when an application uses Smart Workload Manager. The instance tracks each member’s current task queue size, processing speed and system load, and assigns more jobs to members that are processing faster and carry less load.
A member that slows for a while is typically given fewer jobs, so watch per-member run times after you add a host. Discovery schedules can be pointed at one specific cluster, and that choice is explained in how discovery schedules work.
A ServiceNow MID Server cluster needs members that can do the same work
Cluster members have to be able to run the same jobs. In practice that means the same supported applications, IP ranges and capabilities on each host, and network reach to the same targets. Test from each host rather than from one representative machine. The exact rules for matching capabilities and IP ranges depend on your release and the plugins you run, so confirm them on your own instance before you rely on them. The credential side is covered in how to control who can use discovery credentials and what they can reach.
Failed members leave in-flight work in an uncertain state
A fail-over is not a pause button. Work that was partly done on a member when it went down may be retried by another member or left half complete, depending on the integration. The risk to watch is duplication. A retried import or export can create the same records twice if the first attempt had already written some of them. Before you rely on fail-over for an integration, find out whether it is safe to rerun and whether it can skip records it has already handled.
After any failover event, check the outcome of each affected run and reconcile the target data, rather than assuming the cluster handled it cleanly.
Some job types do not fail over
Some job types do not move to another member when a host fails. The platform does not redirect Command or SystemCommand topics from the ECC queue, so those records stay on the queue unprocessed. Check the topic of each job before you assume a fail-over will pick it up.
A related gap sits in discovery. If a member fails while a Shazzam probe is running and auto-selection is configured, fail-over is not available, the Shazzam discovery stops, and discovery does not choose another MID Server automatically.
Some integrations belong on a dedicated host
Some integrations should not share a cluster at all. Directory imports, export jobs and database integrations often hold connections, keep local state or write to a target that does not tolerate two writers. Give them a dedicated MID Server that is not part of any cluster. The cost is one more host to patch and monitor. Without a cluster, no other member takes over a half-finished import and restarts it from the beginning of its ECC queue task, which can produce duplicate records.
A common mistake is to put each integration on the cluster because that is simpler to manage. It is simpler on the first day and much harder on the day a failure needs explaining. It helps to read through the usual ServiceNow implementation pitfalls before you finalize the layout.
Detect a dead MID Server before the data goes stale
A fail-over starts when the platform registers that a member has failed, so detection speed matters. The instance sends a heartbeat probe to each MID Server every 5 minutes by default and marks a member Down when the probe gets no response. Build an alert for a MID Server that stops reporting and send it to someone who can act on it. Pair it with a check on run outcomes, because a host can be up and still failing its work. A heartbeat tells you the process is alive. A run outcome tells you the integration is working.
Discovery results feed configuration data, so a host that goes quiet also leaves gaps that are easy to miss. The issues that follow are covered in the usual hurdles in a ServiceNow CMDB project. Keep alert thresholds short enough to matter and long enough to ignore a brief restart. Test the alert once by stopping a non-production member on purpose and confirming the notification arrives.
A fail-over cluster can run out of members
A fail-over cluster can fail with no member left to take over. When the platform cannot find a MID Server with the right capabilities to replace a failed one, it fires the mid_server.cluster.down event. The event is raised for the cluster, so it tells you the group has lost its fail-over capacity, not just one stopped host.
If all MID Servers in a cluster are down, the discovery is canceled. Each member also has to be on any access control list in use, because a member left off one may be unable to reach the devices it is meant to cover.
Frequently asked questions
Can one ServiceNow MID Server cluster run load balancing and fail-over together?
Yes, a MID Server can be added to both a load-balancing cluster and a fail-over cluster at the same time. Keep one cluster per MID Server where you can, and test that exact overlap on your own instance before you depend on it. Integrations such as LDAP, export set and JDBC data sources should use dedicated MID Servers that are not clustered, because a failover restarts them from the beginning of the ECC queue task and can duplicate data.
Does a cluster protect against lost work?
No. A cluster reduces the impact of one host failing, but it does not make jobs safe to repeat. Partly completed work, retries and restarts can leave records in an unexpected state, so plan a reconciliation step after any failover event.
How many members should a cluster have?
There is no single right number. A fail-over cluster needs a second MID Server in its configured order to take over, and more members help when the load is high and spread out. Base the count on measured run times and the capacity of each host. Add a member when a job that should take minutes starts queuing behind others.
Who should own MID Server monitoring?
Assign it to whoever runs the platform day to day, not to a shared mailbox nobody reads. The owner needs the access to restart a host, check network reach and decide whether an integration should be paused until it is fixed.