<div dir="ltr"><div dir="ltr">On Tue, Jun 29, 2021 at 4:57 AM Tejveer Sharma <<a href="mailto:sharmatejveer85@gmail.com">sharmatejveer85@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif">Hi Joshua,</p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif">Thanks for your response.</p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif">I am actually trying to do performance testing of Asterisk
and trying to identify where the bottleneck is. And that is how we reached this
simplistic scenario where the “issue” is reproduced. Here, the total channels
never go beyond 200 but we are simulating a dialer application where 50%
calls are not answered (routing failures, invalid number, network failure etc.)
and hence the channel creation/destruction rate is high.</p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif">As per your comment, it seems that high rate of channel
creation/destruction might be the culprit. Our observation is that at this high
rate (~30 channel create/delete per second), a few CreateChannel requests take
more than 5 seconds while the others are served with a decent response time of
~15ms. </p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif">Is there a known limit for how much channel creation rate
Asterisk can support? It will help me in debugging my configuration. Do you
think the queue might be building up in Asterisk as the Stassis application
tries to send responses/events to the ARI application? </p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="MsoNormal" style="margin:0cm;font-size:11pt;font-family:Calibri,sans-serif">I couldn’t find much material on pointers to debug this kind
of configuration and any pointers to literature of any kind is much
appreciated.</p></div></blockquote><div><br></div><div>There is no "known limit", and such a limit would also depend on other variables such as the system itself. There is also no material on how to debug such a thing because generally you have to examine the complete code path, profile it, and have an understanding of the complete thing to know where issues may occur. I haven't done profiling of this so I don't know the areas with any certainty of where there may be bottlenecks. I can only guess.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>