[Asterisk-code-review] app voicemail: increase taskprocessor alert levels for IMAP ... (asterisk[13])

Alexei Gradinari asteriskteam at digium.com
Fri Jul 22 16:43:15 CDT 2016


Alexei Gradinari has uploaded a new change for review.

  https://gerrit.asterisk.org/3318

Change subject: app_voicemail: increase taskprocessor alert levels for IMAP storage
......................................................................

app_voicemail: increase taskprocessor alert levels for IMAP storage

On heavy loaded system with IMAP storage sometimes
'app_voicemail' task processor queue reached 500 scheduled tasks.

This patch triplicates default level if compiled with IMAP storage.

ASTERISK-26229 #close

Change-Id: I766294fbffedf64053c0d9ac0bedd3109f043ee8
---
M apps/app_voicemail.c
1 file changed, 6 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/18/3318/1

diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 321e5c9..d488d12 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -14871,6 +14871,12 @@
 		ast_log(AST_LOG_WARNING, "failed to reference mwi subscription taskprocessor.  MWI will not work\n");
 	}
 
+#ifdef IMAP_STORAGE
+	if (taskprocessor_alert_set_levels(mwi_subscription_tps, -1, 3 * AST_TASKPROCESSOR_HIGH_WATER_LEVEL)) {
+		ast_log(AST_LOG_WARNING, "failed to set alert levels for mwi subscription taskprocessor.\n");
+	}
+#endif
+
 	if ((res = load_config(0))) {
 		unload_module();
 		return AST_MODULE_LOAD_DECLINE;

-- 
To view, visit https://gerrit.asterisk.org/3318
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I766294fbffedf64053c0d9ac0bedd3109f043ee8
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>



More information about the asterisk-code-review mailing list