diff options
author | Richard Mudgett <rmudgett@digium.com> | 2016-06-02 16:08:19 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2016-06-09 10:32:07 -0500 |
commit | 2cd67d5b07d28891ea7c86aece702a4d6e436afc (patch) | |
tree | 22a35eaf8088ed377a0f1acc1979bde11a0c6543 /include/asterisk/res_odbc.h | |
parent | c966a035e03f1dba94fb24c4a7ed56133425c85a (diff) |
taskprocessors: Implement high/low water mark alerts.
When taskprocessors get backed up, there is a good chance that we are
being overloaded and need to defer adding new work to the system.
* Implemented a high/low water alert mechanism for modules to check if the
system is being overloaded and take appropriate action. When a
taskprocessor is created it has default congestion levels set. A
taskprocessor can later have those congestion levels altered for specific
needs if stress testing shows that the taskprocessor is a symptom of
overloading or needs to handle bursty activity without triggering an
overload alert.
* Add CLI "core show taskprocessor" low/high water columns.
* Fixed __allocate_taskprocessor() to not use RAII_VAR(). RAII_VAR() was
never a good thing to use when creating a taskprocessor because of the
nature of how its references needed to be cleaned up on a partial
creation.
* Made res_pjsip's distributor check if the taskprocessor overload alert
is active before placing a message representing brand new work onto a
distributor serializer.
ASTERISK-26088
Reported by: Richard Mudgett
Change-Id: I182f1be603529cd665958661c4c05ff9901825fa
Diffstat (limited to 'include/asterisk/res_odbc.h')
0 files changed, 0 insertions, 0 deletions