]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: Add taskprocessor alert level options. 21/3421/2
authorAlexei Gradinari <alex2grad@gmail.com>
Fri, 5 Aug 2016 20:26:22 +0000 (16:26 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Fri, 5 Aug 2016 20:45:38 +0000 (16:45 -0400)
commit5d74c0ea30da7c8dd0f7e1d8177f701e4801d4d2
tree7bbab13b8f1ea1a547c5ae7859f67c4035f43846
parent93aa3f74a255af428b693d25e722eaad7389d7e6
app_voicemail: Add taskprocessor alert level options.

On heavy loaded system with IMAP or DB storage,
'app_voicemail' taskprocessor queue could reach 500 scheduled tasks.
It could happen when the IMAP or DB server dies or is unreachable.
It could happen on startup when there are many (thousands)
realtime endpoints configured with unsolicited mwi.
If the taskprocessor queue reaches the high water level
then the alert is triggered and pjsip stops processing new requests
until the queue reaches the low water level to clear the alert.

This patch adds 2 new 'general' configuration options
to tune taskprocessor alert levels:
'tps_queue_high' - Taskprocessor high water alert trigger level.
'tps_queue_low' - Taskprocessor low water clear alert level

ASTERISK-26229 #close

Change-Id: I766294fbffedf64053c0d9ac0bedd3109f043ee8
CHANGES
apps/app_voicemail.c
configs/samples/voicemail.conf.sample