<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi Agalya,<br>
<br>
I'm not fully aware of your script, but you can definitely do more
than that - without any sync queries, you can easily get 20K cps
on such a machine. <br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 03.10.2016 22:06, Ramachandran,
Agalya (Contractor) wrote:<br>
</div>
<blockquote
cite="mid:be4593730a6a4ec790bcc1ce7ed3d191@COPDCEX28.cable.comcast.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div><font color="blue">Hi Liviu/Bogdan, </font></div>
<div><font color="blue"> </font></div>
<div><font color="blue">Please let me know how is my OpenSIPS
performance? Is it under performed ? </font></div>
<div><font color="blue">Waiting for the feedback to hear from
you.</font></div>
<div><font color="blue"> </font></div>
<div><font color="blue">Am running OpenSIPS in a VM with 8
core CPU and 20GB RAM. </font></div>
<div><font color="blue"> </font></div>
<div><font color="blue">Regards,<br>
Agalya</font></div>
<div><font color="#1F497D"> </font></div>
<div>_____________________________________________<br>
<b>From:</b> Ramachandran, Agalya (Contractor) <br>
<b>Sent:</b> Monday, September 19, 2016 12:56 PM<br>
<b>To:</b> 'Liviu Chircu' <a class="moz-txt-link-rfc2396E" href="mailto:liviu@opensips.org"><liviu@opensips.org></a>;
OpenSIPS users mailling list
<a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a><br>
<b>Subject:</b> RE: FW:[OpenSIPS-Users] Asynchronous
operation for REST queries</div>
<div> </div>
<div> </div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
color="blue">Hi Liviu, </font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
color="blue">Thank you for the response. </font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
color="blue">2) Regarding the feedback, this is what I
observed till now. </font></div>
<ol style="margin:0;padding-left:36pt;">
<font color="blue">
<li style="margin-top:5pt;margin-bottom:5pt;">Without HTTP
–150 calls per sec for almost 100K calls => Looks
good.</li>
<li style="margin-top:5pt;margin-bottom:5pt;">With HTTP
being sync – </li>
</font>
</ol>
<ol style="margin:0;padding-left:72pt;" type="a">
<font color="blue">
<li style="margin-top:5pt;margin-bottom:5pt;">Children
parameter =1 , only 4 cps, since depending on the query
and the response, it takes time to respond. </li>
<li style="margin-top:5pt;margin-bottom:5pt;">Children
parameter = 50, 100K calls sent at 100 cps =>
OpenSIPS handles 95cps - 3000+ active calls</li>
<li style="margin-top:5pt;margin-bottom:5pt;">Children
parameter = 20, 100K calls sent at 35 cps => OpenSIPS
handles 35cps</li>
</font>
</ol>
<ol start="3" style="margin:0;padding-left:36pt;">
<font color="blue">
<li style="margin-top:5pt;margin-bottom:5pt;">With HTTP
being async tested with the latest fix included on main
branch</li>
</font>
</ol>
<div
style="margin-top:5pt;margin-bottom:5pt;padding-left:36pt;"><font
color="blue">=> Children parameter =8, 10K calls sent
at 25cps => OpenSIPS handles 23 cps, with 1200+ active
calls. </font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
color="blue">The result with async may improve in a
release version from the development branch I hope.</font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
color="blue">Regards,<br>
Agalya </font></div>
<div><b>From:</b> Liviu Chircu [<a moz-do-not-send="true"
href="mailto:liviu@opensips.org"><font color="#0563C1"><u>mailto:liviu@opensips.org</u></font></a>]
<br>
<b>Sent:</b> Monday, September 19, 2016 11:18 AM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) <<a
moz-do-not-send="true"
href="mailto:Agalya_Ramachandran@comcast.com"><font
color="#0563C1"><u>Agalya_Ramachandran@comcast.com</u></font></a>>;
OpenSIPS users mailling list <<a moz-do-not-send="true"
href="mailto:users@lists.opensips.org"><font
color="#0563C1"><u>users@lists.opensips.org</u></font></a>><br>
<b>Subject:</b> Re: FW:[OpenSIPS-Users] Asynchronous
operation for REST queries</div>
<div> </div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
face="Courier New" size="2"><span style="font-size:10pt;">Hi,
Agalya!</span></font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
face="Courier New" size="2"><span style="font-size:10pt;">1)
Regarding connection reuse optimization, I haven't done
any research on this topic. In other words, libcurl will
be managing its connections through
its default settings / parameters, whichever they are.
The module is mature enough, maybe now is a good time to
look into this feature.</span></font></div>
<div style="margin-top:5pt;margin-bottom:5pt;"><font
face="Courier New" size="2"><span style="font-size:10pt;">2)
Since you're doing lots of obviously blocking operations
(HTTP transfers), then you will definitely need more
processes. However, I noticed lots
of transfers are quickly completed, without requiring
async, so you don't want too many processes if all
requests work like that. Just tune according to your
needs until you find a sweet spot. You could even share
the performance results, I'd love to hear some
feedback.</span></font></div>
<div><font face="Courier New" size="2"><span
style="font-size:10pt;">Liviu Chircu</span></font></div>
<div><font face="Courier New" size="2"><span
style="font-size:10pt;">OpenSIPS Developer</span></font></div>
<div><font face="Courier New" size="2"><span
style="font-size:10pt;"><a moz-do-not-send="true"
href="http://www.opensips-solutions.com"><font
color="#0563C1"><u>http://www.opensips-solutions.com</u></font></a></span></font></div>
<div>On 19.09.2016 17:57, Ramachandran, Agalya (Contractor)
wrote:</div>
<div><font color="blue">Hi team/Liviu, </font></div>
<div><font color="blue"> </font></div>
<div><font color="blue">Couple of questions for
clarification. </font></div>
<ol style="margin:0 72pt 0 0;padding-left:108pt;">
<font color="blue">
<li>I see for every HTTP request(for both sync and async),
TCP ports are being opened and closed. </li>
</font>
</ol>
<div><font color="blue"> Are we not using same
port and pooling the request in a particular port if we
are hitting simultaneous requests? </font></div>
<ol start="2" style="margin:0 72pt 0 0;padding-left:108pt;">
<font color="blue">
<li>Children parameter in the config file - I understand
the use case of this is to spawn multiple threads. </li>
</font>
</ol>
<div style="padding-left:36pt;"><font color="blue">If we want
to handle more load in OpenSIPS, we should increase this
number correct? </font></div>
<div style="padding-left:36pt;"><font color="blue">So when
increasing this number of children process we should take
care of CPU utilization and according to the no of CPU and
RAM we used in our Linux system.</font></div>
<div style="padding-left:36pt;"><font color="blue"> </font></div>
<div><font color="blue">Correct me if am wrong in my
understanding of the above questions.</font></div>
<div><font color="blue"> </font></div>
<div><font color="blue">Regards,</font></div>
<div><font color="blue">Agalya</font></div>
<div><font color="blue"> </font></div>
<div><font color="#1F497D"> </font></div>
<div><b>From:</b> Liviu Chircu [<a moz-do-not-send="true"
href="mailto:liviu@opensips.org"><font color="#0563C1"><u>mailto:liviu@opensips.org</u></font></a>]
<br>
<b>Sent:</b> Thursday, September 15, 2016 3:53 AM<br>
<b>To:</b> Ramachandran, Agalya (Contractor) <a
moz-do-not-send="true"
href="mailto:Agalya_Ramachandran@comcast.com"><font
color="#0563C1"><u><Agalya_Ramachandran@comcast.com></u></font></a>;
OpenSIPS users mailling list <a moz-do-not-send="true"
href="mailto:users@lists.opensips.org"><font
color="#0563C1"><u><users@lists.opensips.org></u></font></a><br>
<b>Subject:</b> Re: FW:[OpenSIPS-Users] Asynchronous
operation for REST queries</div>
<div> </div>
<div><font face="Courier New" size="2"><span
style="font-size:10pt;">On 14.09.2016 21:33,
Ramachandran, Agalya (Contractor) wrote:</span></font></div>
<div><font color="#1F497D">Are you going to add one more
parameter “connect_polling_interval” and what will be use
case of it? </font></div>
<div><font color="#1F497D">Is it replacement for 10% wait time
logic?</font></div>
<div><font face="Times New Roman ,serif" size="3"><span
style="font-size:12pt;">Yes.<br>
<br>
</span></font></div>
<div><font color="#1F497D"> </font></div>
<div><font color="#1F497D">Also, I observed in the case of
async call, it takes ~90 to 100ms to open the port itself.
Is this expected behavior?</font></div>
<div><font face="Times New Roman ,serif" size="3"><span
style="font-size:12pt;">Yes.<br>
<br>
<br>
</span></font></div>
<div><font face="Courier New" size="2"><span
style="font-size:10pt;">Liviu Chircu</span></font></div>
<div><font face="Courier New" size="2"><span
style="font-size:10pt;">OpenSIPS Developer</span></font></div>
<div><font face="Courier New" size="2"><span
style="font-size:10pt;"><a moz-do-not-send="true"
href="http://www.opensips-solutions.com"><font
color="#0563C1"><u>http://www.opensips-solutions.com</u></font></a></span></font></div>
<div> </div>
<div> </div>
</span></font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>