]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor: Add high water mark warnings 73/1573/1
authorJonathan Rose <jrose@digium.com>
Tue, 3 Nov 2015 22:19:43 +0000 (16:19 -0600)
committerJonathan Rose <jrose@digium.com>
Thu, 5 Nov 2015 22:48:52 +0000 (17:48 -0500)
commitb9713354dc64d17ffe384365b606c1cec101b47f
treecc1e5d115acecdffcddbfe86cab526c0f8501fc6
parentac9432fdb64cd7fa7d9719760e5f33c93e5a1406
taskprocessor: Add high water mark warnings

If a taskprocessor's queue grows large, this can indicate that there
may be a problem with tasks not leaving the processor or else that
the number of available task processors for a given type of task is
too low. This patch makes it so that if a taskprocessor's task queue
grows above 100 queued tasks that it will emit a warning message.
Warning messages are emitted only once per task processor.

ASTERISK-25518 #close
Reported by: Jonathan Rose

Change-Id: Ib1607c35d18c1d6a0575b3f0e3ff5d932fd6600c
main/taskprocessor.c