]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Taskprocessors: Increase high-water mark 24/1624/1
authorMark Michelson <mmichelson@digium.com>
Fri, 13 Nov 2015 20:19:35 +0000 (14:19 -0600)
committerMark Michelson <mmichelson@digium.com>
Fri, 13 Nov 2015 20:32:03 +0000 (15:32 -0500)
commitc0a7df1021488c02731bd3d50c0291fa7a85a345
tree84501a8c11a4a100ca92a1315515602a52008f2e
parent2fc3267677bb9f85bfca58060e31ba50c641c482
Taskprocessors: Increase high-water mark

In practical tests, we have seen certain taskprocessors, specifically
Stasis subscription taskprocessors, cross the recently-added high-water
mark and emit a warning. This high-water mark warning is only intended
to be emitted when things have tanked on the system and things are
heading south quickly. In the practical tests, the Stasis taskprocessors
sometimes had a max depth of 180 tasks in them, and Asterisk wasn't in
any danger at all.

As such, this ups the high-water mark to 500 tasks instead. It also
redefines the SIP threadpool request denial number to be a multiple of
the taskprocessor high-water mark.

Change-Id: Ic8d3e9497452fecd768ac427bb6f58aa616eebce
include/asterisk/taskprocessor.h
main/taskprocessor.c
res/res_pjsip/pjsip_distributor.c