Notification Rule limitation in Service Desk
search cancel

Notification Rule limitation in Service Desk

book

Article ID: 459670

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

The following article describes a scenario to be aware of when configuring notification rules within Service Desk.  Certain notification configurations may result in the appearance of a performance issue or loss of product utility.

Consider an activity notification which has the following notification rule attached:

In the above example, the Default Field Update Notification Rule has been configured to include the Contact Type "Employee".  What this does is that every time this notification rule is invoked, which in this case, a field update has taken place, contact entries that have been assigned the contact type "Employee" will receive a notification.

Note:  Contact Type is a specific field on the contact record.  It is not a reference to the given record's assigned access type or roles.

Environment

All releases of Service Desk

Cause

The above configuration will run a query of all contact records with the given contact type to transmit the notification.  The problem is if there is a large number of such contact records.  

Under such conditions, the Secondary or App server's stdlog will present an entry such as this:

01/01 00:00:00.00 SDMSERVER sqlagt:select1        9048 SIGNIFICANT  prov_base.c           1025 SQL Query has finished (####) rows for (domsrvr/superuser/####).  Clause (SELECT ca_contact.last_name+CASE WHEN ( ca_contact.first_name IS NULL OR ca_contact.first_name = ? ) AND ( ca_contact.middle_name IS NULL OR ca_contact.middle_name = ? ) THEN N'' ELSE N', '+isnull(ca_contact.first_name,N'')+N' '+isnull(ca_contact.middle_name,N'') END, ca_contact.last_name, ca_contact.first_name, ca_contact.middle_name, ca_contact.pri_phone_number, ca_contact.alternate_identifier, ca_contact.last_update_date, ca_contact.contact_uuid FROM ca_contact WHERE ( ca_contact.contact_type = 2305 ) AND ( ca_contact.inactive = 0 ) ORDER BY ca_contact.last_name , ca_contact.first_name , ca_contact.middle_name) Input (<string>|<string>)


The above query conducts a search for all active Employee contact records, with no other search arguments applied.  In the above example at the highlight, contact_type "2305" is the Employee contact type.

In conditions where there are a large number of such contacts, around 200k+ or more entries, the stdlog may also present the following, about 1-2 minutes after this query has finished

01/01 00:01:26.23 SDMSERVER spelsrvr               12904 FATAL        String.c               515 * STRING ERROR: String too big 1048579

01/01 00:01:26.28 SDMSERVER proctor_SDMSERVER        5840 SIGNIFICANT  pdm_process.c          930 Process stopped (X:/SDM/bin/spel_srvr -l spelsrvr -r rpc_srvr:SDMSERVER return: 999

01/01 00:01:26.29 SDMSERVER proctor_SDMSERVER        5840 SIGNIFICANT  pdm_process.c          939 Stopped: X:/SDM/bin/spel_srvr -l spelsrvr -r rpc_srvr:SDMSERVER


The resultant loss of spelsrvr process will also disrupt many Service Desk related operations.  For the web UI user, the webengine process will not be aware of the spelsrvr loss, and will hang awaiting a response, which a recovered spelsrvr process will not be able to resolve, giving the appearance of a performance issue to Service Desk. 

The above loss will also prevent the given notification from going out in, even partially.  In scenarios where the notification was not intended to have been sent due to misconfiguration, since no users will have received the notification, it will not be possible to inquire the user base for any irregular notifications as part of troubleshooting.

Resolution

For immediate address of a performance issue which is suspected to be tied to the above observations, the given entry in the Notification Rule should be removed.

A review should be taken to determine the purpose of such a notification, if such a notification is needed or a misconfiguration.

For a large quantity of contacts who need to receive such a notification under such conditions, it is recommended to configure an external distribution email address which names the contacts who need to be notified, and tie the notification to a single contact record within Service Desk who is assigned the distribution email address, removing the responsibility of processing a large quantity of such notifications from Service Desk and to a more robust mailing list solution.

Additional Information

Generally, such notifications can support up to 20k contact records.  Anything higher runs the risk of a String related limitation on the spelsrvr and the aforementioned loss of process and performance.

See also:  Working through log messages denoting performance issues in Service Desk Manager