How to make SMA pick up more work faster
My SMA server is sitting mostly at low CPU usage, but I notice that scripts (runbooks) are not executed immediately. Is there a way to configure the batch size and polling interval so that it processes more in one go and also poll faster ?
Stephane
Best Answers
-
Adam_Dzyacky Product Owner Contributor Monkey ✭✭✭✭✭Stephane_Bouillon said:How can I verify the SMA Database Purge Job ?
5
Answers
From an SMA perspective, there really isn't a lot going on. It is genuinely a PowerShell repo of sorts waiting to be invoked. However when it comes to SMA performance there is a silent killer out there which is failed grooming jobs. By default, the SQL DB that SMA was installed to should also get a SQL Job deployed that ensures your SMA database is groomed daily and retains at most 30 days worth of jobs. If this job starts failing and isn't caught your SMA database balloons with data based on usage and will get worse as time goes on. You can check up on the "SMA Database Purge Job" history and make sure you aren't seeing errors on said SQL server.
From an SCSM perspective, Activities created with the SMA connector and then placed within a Incident, Change, or Service Request are more subject to the SCSM workflow engine realizing the parent item is Active/In-Progress and then kicking off the corresponding Activity as opposed to SMA infrastructure. Because as you may or may not know, the general workflow for a SR/CR is something to the effect of:
Parent SR/CR New, all Activities New
Parent SR/CR flips to In-Progress, all Activities to Pending
First Activity flips to In-Progress
The SCSM workflow engine really only has two modes - on a schedule (e.g. every 30 seconds) or event based (e.g. Incident went from New -> Active). Event based triggers are more instantaneous and means you have less noise in SCSM since they aren't always running on a schedule. It's not a "a lot" of noise, but it is still technically more than nothing. Given that the SMA Connector is in a sealed management pack, our options seem to be limited. But given the entire SCSM architecture is taken directly from SCOM it means we should be able to create an Override for the Workflow and change how the values in a sealed MP are interpreted. Fortunately, there is such an article on the topic -
https://blogs.technet.microsoft.com/servicemanager/2011/07/07/disabling-workflows-with-overrides/
I myself have not done this for modifying a Workflow's schedule, but it feels like this should be possible.
However, out of curiosity I also checked my SCSM database server, and there the SQL Server Agent is not running either: it shows Agent XPs disabled should I start it ?