The AckQ is used to
collect acknowledgements for documents processed by the trigger threads when
they complete. If set to a size of one, then the trigger thread waits for the
acknowledgement to be received by the Broker before it completes. If the AckQ
size is greater than one, then the trigger thread places the acknowledgement in
the AckQ and exits immediately. A separate acknowledging thread polls the AckQ
periodically to write acknowledgements to the broker. If the AckQ reaches
capacity then it is immediately written out to the broker, with any trigger
threads waiting to complete while this operation is done. Setting the AckQ size
greater than one enables the queue, and reduces the wait time in the trigger
threads. If performance is important, then the AckQ should be set to a size of
one to two times the number of trigger threads. Acknowledgements only affect
guaranteed document types. Volatile documents are acknowledged automatically
upon reading them from the Broker into the Trigger Cache.
Rough Guide:#
Acknowledgement Queue Size = 2 x
Trigger Threads
No comments:
Post a Comment