CFS generates events when the import queue and the outgoing (indexing) queue become full, become empty, or the queue size passes certain thresholds. If a queue approaches its maximum size, this might indicate a problem, or that applications are making requests to Connector Framework Server faster than they can be processed.
CFS generates the following events for each queue that is monitored:
QueueFull
event occurs when the queue becomes full.QueueFilling
event occurs when the queue size exceeds a configurable threshold (QueueFillingThreshold
) and the last event was a QueueEmpty
or QueueEmptying
event.QueueEmptying
event occurs when the queue size falls below a configurable threshold (QueueEmptyingThreshold
) and the last event was a QueueFull
or QueueFilling
event.QueueEmpty
event occurs when the queue becomes empty.You can configure event handlers to process these events. For example, you might want to notify an administrator if the size of a queue reaches 80 percent of the maximum.
To monitor queue sizes
Set the OnQueueEvent
parameter to the name of a section that configures the event handler.
To monitor the size of the import queue, set this parameter in the [ImportService]
section. For example:
[ImportService]
OnQueueEvent=MyEventHandler
To monitor the size of the outgoing (indexing) queue, set this parameter in the [Indexing]
section. For example:
[Indexing] OnQueueEvent=MyEventHandler
Create a new section in the configuration file to contain the settings for your event handler. You must name the section using the name you specified with the OnQueueEvent
parameter.
In the new section, set the LibraryName
parameter.
LibraryName
|
The type of event handler to use to handle the event.
|
For example:
[MyEventHandler]
LibraryName=LuaHandler LuaScript=./handle_queue_event.lua
|