summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2015-11-13 14:19:35 -0600
committerMark Michelson <mmichelson@digium.com>2015-11-13 15:33:20 -0500
commit4f43b85c92050c8deba7041e687404228294d920 (patch)
tree8f8a44889c2082c9de901a4a906863298567e66e /include/asterisk
parent367972e42d1a5f73d8bb4abacd4c681fc77dcd24 (diff)
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
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/taskprocessor.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/taskprocessor.h b/include/asterisk/taskprocessor.h
index 06368867a..6ebf0729c 100644
--- a/include/asterisk/taskprocessor.h
+++ b/include/asterisk/taskprocessor.h
@@ -56,6 +56,8 @@
struct ast_taskprocessor;
+#define AST_TASKPROCESSOR_HIGH_WATER_LEVEL 500
+
/*!
* \brief ast_tps_options for specification of taskprocessor options
*