MID Server Best Practices
MID Server Best Practices
Whitepaper
Ref: 0002446
Contents
• Installation
• Performance Monitoring
• Ensure a v alidated connection from the serv ers to be monitored and the MID
serv er
More I nformation
• For Ev ent Management – Check to see if you need the MID Serv er Extension
enabled.
Cloud
Datacenters
Firewall
Network Proxy
Optional
REST API
Network Gear On-Prem Datacenters
MID Servers
*SSH, SNMP, PowerShell, W inRM,
W MI, CIM, W BEM
Discovery 1 4 4 50
Service 1 4 4 50
Mapping
Health Log 1 4 4 50
Analytics
CPG 4 8 4 50
ACC 8 16 8 50
EM/OI 4 12 4 36
1. Click on a
Task and
complete
2. Assign the
Leading Practice: Task
Use guided setup to step through
the initial configuration. Guided
setup assists you with planning the
roll-out of the product and
performing the basic configuration
3. Mark
to go live.
Complete
• Use the Guided Setup and to Create M ID Servers
• Define necessary M ID server users and roles and create accounts
© 2024 Serv iceNow, Inc. All Rights Reserv ed 11
Performance and
Tuning
Performance Considerations
• Example:
While your local discovery may take a few hours to complete perhaps there
is a need to increase that time as it is discovering through a bandwidth-
sensitive network.
• Increasing this number will increase the number of tasks (discovery probes) that it will
do at any one time speeding up the discovery jobs.
• Further Information
on ServiceNow docs
• Increasing this number will allow the application to allocate itself more memory
resources from the host. This is done in conjunction with increasing the threads as
needed.
• There are many factors that determine the calculation, because of the complexity of
this it requires the experience and assistance of ServiceNow Engineers to agree on
the number of MID Servers required.
• A MID server can process about a probe per minute per thread, and there are about
7 probes per device on average.
• Both of those may vary, depending on the mix of devices (for example, it takes more
probes to discover Windows servers than it does for routers) and the speed of your
network communications and MID Server.
• If the IP ranges are unusually large, i.e., 100 or bigger and mostly empty, the MID
server will spend a significant amount of time scanning non-responding IP addresses,
slowing the performance.
• Below is a rough estimate to see if a single MID server configured to use 25 threads
could achieve this goal.
With 25 threads, the MID server can process about 25 probes per minute.
However, you need this work to be completed within the allotted window.
• Based on these numbers, you would want to increase the threads by 25 or you can
tune those threads down where network utilization is a concern.
• There are other factors that determine the calculation like OS and type of active
targets in addition to network latency.
If you're using the default form, you'll need to use Configure > Related Lists to add
these lists to the form
The scalar metric shows the host's minimum, maximum, and average CPU utilization
measured over a 10-minute period.
The memory metric shows the MID Server application's memory utilization measured
over 10-minute periods. In particular:
• Max available bytes - the configured memory allocation for the MID Server as
defined in the wrapper configuration file.
• Max allocated bytes - what the MID Server application has allocated itself from
the configured available bytes.
• Max used bytes - memory resources actively being used by the MID Java Process.
• As that number increases so will the memory utilization. The more active the MID
Server application, the host will need more of its own resources to manage the
application
• It is key that host performance is monitored as use of the MID server application
increases. It is recommended to keep the host at about 80% total utilization at
full scale for “standard” deployments.
• A base configured MID Server with 8GB of local memory should provide plenty of
available resources to ‘give’ to the MID Server application as you increase threads.
• For cases like Discovery which are impacted by the number of targets to discover,
increasing the amount of work a MID Server is tasked with will increase the network
traffic as you are discovering more probes at a single time.
© 2024 Serv iceNow, Inc. All Rights Reserv ed 25