<p>George Joseph <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/11001">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">taskprocessor: Enable subsystems and overload by subsystem<br><br>To prevent one subsystem's taskprocessors from causing others<br>to stall, new capabilities have been added to taskprocessors.<br><br>* Any taskprocessor name that has a '/' will have the part<br> before the '/' saved as its "subsystem".<br> Examples:<br> "sorcery/acl-0000006a" and "sorcery/aor-00000019"<br> will be grouped to subsystem "sorcery".<br> "pjsip/distributor-00000025" and "pjsip/distributor-00000026"<br> will bn grouped to subsystem "pjsip".<br> Taskprocessors with no '/' have an empty subsystem.<br> The "core show taskprocessors" CLI command now shows the subsystem.<br><br>* When a taskprocessor enters high-water alert status and it<br> has a non-empty system, the subsystem name will be marked as<br> "overloaded".<br><br>* When a taskprocessor leaves high-water alert status and it<br> has a non-empty system, the subsystem name will be unmarked as<br> "overloaded".<br><br>* A new api ast_taskprocessor_is_subsystem_overloaded() has been<br> added that checks if a specific subsystem is overloaded.<br><br>* The pjsip distributor now uses<br> ast_taskprocessor_is_subsystem_overloaded("pjsip") to determine<br> if it should pause accepting new messages.<br><br>REMINDER: The taskprocessor code doesn't take any action itself based<br>on high-water alerts or overloading. It's up to taskprocessor users<br>to check and take action themselves. Currently only the pjsip<br>distributor does this.<br><br>Change-Id: I8c19068bb2fc26610a9f0b8624bdf577a04fcd56<br>---<br>M include/asterisk/taskprocessor.h<br>M main/stasis.c<br>M main/taskprocessor.c<br>M res/res_pjsip.c<br>M res/res_pjsip/pjsip_distributor.c<br>5 files changed, 99 insertions(+), 13 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/01/11001/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/11001">change 11001</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/11001"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: I8c19068bb2fc26610a9f0b8624bdf577a04fcd56 </div>
<div style="display:none"> Gerrit-Change-Number: 11001 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>