]> git.ipfire.org Git - thirdparty/asterisk.git/commit
taskprocessor: Add high water mark warnings 72/1572/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:44 +0000 (17:48 -0500)
commit6ff48319d9a3d0e4dd301f90d4b9b214f9f87e3a
treea93820b92d3f88bfc44552999fdcd1e7cab52bd3
parent506aea26e6c67cd53874aa3ffef278524dfd7878
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