]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor: Add high water mark warnings 62/1562/4
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:20:40 +0000 (16:20 -0600)
commita2c2a8e1bbca9e434dfb7eaef3cf3f42773980b9
tree8baaa6757a3419f84daa6da3cdb8d3a48813e5d7
parente26a06c1dafc9975a4e3a7e5e3153fcf75b1eeaa
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