<style> .release-box { height: 30px; width: 100px; padding-top: 8px; text-align: center; border-radius: 5px; font-weight: bold; background-color: #828995; border-color: #FCE28A;} .release-box:hover { cursor: hand; cursor: pointer; opacity: .9; } </style> <meta name="robots" content="noindex"> <div class="release-box"> <a href="https://docs.perspectium.com/display/Lithium" style="text-decoration: none; color: #FFFFFF; display: block;"> Lithium </a> </div> |
Once you have set up a shared and subscribed queue, there are various optional features you can configure and make use of.
Explore this page for these available features.
This feature allows you to define alert and warning thresholds for queue connectivity issues and backlog of records in a cue.
Here's how:
On the resulting shared queue form, click the Monitor box. This will reveal a variety of new monitoring fields below.
Once you've set up monitoring thresholds for your queue, here's how you can view the alerts and warnings.
This appears at the bottom of the monitoring fields on the shared queue. It holds contents of alerts/warnings.
You can also view the monitor status right on the DataSync homepage.
You can set this up to create a log error int he Perspectium Logs (u_psp_log_message) on the instance, as well as an Alert (u_psp_alerts) on the instance. Then, you can use the Error Notifications module to set up a notification corresponding to this alert. You can also apply filters onto this alert table to capture only those with Name = Perspectium Queue Monitor, or whichever alerts you would like notifications from. You could similarly build a custom notification record based off of the Alerts table.
Back in the queue form under the monitoring fields, check the Track History to track the history of the queue. Then, you can click the View History link under Related Links to see a visualization similar to the one below:
This chart will load the last 7 days of data by default. You can pull up the last 3, 7, 14, or 30 days as well using the links underneath the chart. Data by default is also deleted when it is over 35 days old. This can be changed by going to the table u_psp_properties and adjusting the value of the record with name com.perspectium.queue_history.days_retained from 35 to the number of days you would like.
Additionally, you can view the metrics of your queue in the Queue History (u_psp_queue_history) table.
ServiceNow receipts for a fanout queueThis feature allows you to use a shared queue to send to a fanout queue, which is used to broadcast messages across multiple queues. You can find more general information on fanout queues here. Enabling this feature will send you received based on the fanout queue. For example, if your fanout queue broadcasts messages to 3 different queues, then you'll receive one receipt per queue, for a total of 3 receipts.
Monitoring receipts for a fanout queueNow that you've enabled the receipts option, here's how to monitor them:
|
This feature allows you to purge a queue of all messages in it. This is useful if you run a large bulk share and no longer want or need a subscriber to consume the messages.
Use this feature with caution, as messages cannot be recovered once deleted! |
Here's how to purge a queue:
|
With Krypton 8.1.0+, the Number of Queues option on the Miscellaneous section allows you to specify the number of child shared queues created for sharing out data to optimize sharing.
This way you can create multiple queues to use with a bulk share without having to manually create each shared queue one by one. The queue specified in the shared queue record is considered the base shared queue while any other queues created related to this feature are considered child shared queues. All shared queues have the same capability for sharing data to using the Perspectium application as this feature is meant to simplify the shared queue creation process so you don't have to do it all manually.
This is an advanced feature for those who have heavy loads of data to share out. Use this feature with caution, as it may use more resources on your ServiceNow instance. |
Using the example of creating a queue named psp.out.replicator.yourqueue as specified in the Queue name field, the option you choose will create queues as follows:
Option | Queues Created |
---|---|
1 (Default) | The default option that uses the legacy approach with one queue created i.e. psp.out.replicator.yourqueue |
2 | Two child queues in addition to the base queue. The shared queue record where you specify the Number of Queues option will be for the base queue and then two child queue records will be created. The queues will be named: psp.out.replicator.yourqueue psp.out.replicator.yourqueue01 psp.out.replicator.yourqueue02 The base queue is kept so you can a main queue to use for dynamic shares or other features where multiple queues are not needed such as using the Share only Sys IDs listed. |
4 | Similar to the option for 2, four child queues in addition to the base queue. The shared queue record where you specify the Number of Queues option will be for the base queue and then four child queue records will be created. The queues will be named: psp.out.replicator.yourqueue psp.out.replicator.yourqueue01 psp.out.replicator.yourqueue02 psp.out.replicator.yourqueue03 psp.out.replicator.yourqueue04 |
8 | Similar to the option for 2, eight child queues in addition to the base queue. The shared queue record where you specify the Number of Queues option will be for the base queue and then eight child queue records will be created. The queues will be named: psp.out.replicator.yourqueue psp.out.replicator.yourqueue01 psp.out.replicator.yourqueue02 psp.out.replicator.yourqueue03 psp.out.replicator.yourqueue04 psp.out.replicator.yourqueue05 psp.out.replicator.yourqueue06 psp.out.replicator.yourqueue07 psp.out.replicator.yourqueue08 |
16 | Similar to the option for 2, 16 child queues in addition to the base queue. The shared queue record where you specify the Number of Queues option will be for the base queue and then 16 child queue records will be created. The queues will be named: psp.out.replicator.yourqueue psp.out.replicator.yourqueue01 psp.out.replicator.yourqueue02 psp.out.replicator.yourqueue03 psp.out.replicator.yourqueue04 psp.out.replicator.yourqueue05 psp.out.replicator.yourqueue06 psp.out.replicator.yourqueue07 psp.out.replicator.yourqueue08 psp.out.replicator.yourqueue09 psp.out.replicator.yourqueue10 psp.out.replicator.yourqueue11 psp.out.replicator.yourqueue12 psp.out.replicator.yourqueue13 psp.out.replicator.yourqueue14 psp.out.replicator.yourqueue15 psp.out.replicator.yourqueue16 |
NOTE:
After setting up a shared queue with child queues using this feature, you can use these queues in a bulk share to share records to multiple queues in parallel to optimize performance while avoiding data loss. See bulk share for more information on how to split the sharing with this feature.
To check the status for your queue, click the Get Queue Status link under Related Links at the bottom left-hand corner of the form. Information about the queue status will be displayed in the Status field.
If you are using the Encrypt on Send option (see below for more information), a message stating NOTE: This queue uses the 'Encrypt on send' option to send one encrypted message with a batch of records each time data is sent to MBS. If you are using Perspectium MBS2, the queue count will represent only the encrypted batch messages and not each message you are sharing. will be added to the end of the status information:
With this approach, the number of records that are in the queue may not match the number of records you shared out.
This is due to the MBS you are connected to (which is purposely not available to the Perspectium Core application including the version number so as to not be flagged by application security testing platforms). Since MBS3 maintains a separate state of each queue, there are enhancements supported by both MBS3 and the Perspectium Core application so we can display the actual number of records posted when we post the entire batch encrypted.
With MBS2, this information isn't available so Get Queue Status will display the number of encrypted batches in the queue. For example, if there are 2000 records shared and we encrypted 2 batches (1000 records each) into the queue that have not been consumed, this will show that there are 2 records in the queue. NOTE: The batching is not the same number of records each time as its depending on how large the combined total of all the records are.
This option is to workaround the deprecation of the GlideEncrypter API since the third-party JavaScript libraries used in its place do not have the same performance as GlideEncrypter. See ServiceNow Encryption Options for more information. |
The Encrypt on Send feature will encrypt the entire batch of records sent to the Perspectium Integration Mesh (MBS) versus encrypting each record one by one when they are put into the outbound (psp_out_mesage) table when sharing.
With this option selected, any bulk/dynamic share that uses the queue will have their encryption method set to Base64 Encode Only to base64 encode the records as placed into the outbound table and then when the Perspectium Core application runs its scheduled job to take a batch of records from the outbound table and send those to MBS, the batch will first be encrypted with AES128 or AES256 using the encryption key specified in the shared queue before being sent to MBS.
|
Here's how you set up the Encrypt on Send option:
Go to the Miscellaneous tab and check the Encrypt on Send box.
|
Available in Lithium 9.2.0 and newer |
For cases where you want to enter a new encryption key for a queue (such as when you disabled copying the default encryption key or you are creating a new integration where the key will be different from other integrations), the Generate encryption key UI action provides a quick way to randomly create a new encryption key.
The key created will be 32 characters in length and be made up of a random mix of uppercase letters, lowercase letters, numbers and symbols.
The newly generated key will be displayed at the top of the queue form so you can copy it down to enter in the target application that will decrypt messages such as the DataSync Agent, Meshlets or another ServiceNow instance with the Perspectium application installed:
NOTE: After you click Generate encryption key, this key will be copied into the queue's Queue Encryption Key field. You will need to save the record for the key to be saved into the queue's configuration. Otherwise the queue will use the previous encryption key saved.