<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi Jayesh,<br>
<br>
There are 2 aspects here :<br>
- first, configure proper limits when starting OpenSIPS -
like max number of fds per process, etc.<br>
- secondly, when comes to opensips itself, you need to look
into :<br>
* enough memory (TCP uses a lot)<br>
* set proper timeouts in TCP (connect, write, read
timeouts) to avoid blocking<br>
* properly handle the TCP lifetime to get to a
compromise between the number of ongoing connections and
seting/closing connections<br>
* really good control over when OpenSIPS should open new
TCP conns - you can do this from script, depending on the target
(like never try to open conns towards end-user, let them connect
to you).<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>
On 10.09.2014 14:55, Jayesh Nambiar wrote:<br>
</div>
<blockquote
cite="mid:CANAYoztsFhkPKd_NZEA2zYEtMXcJRGCd5rkLxo_UEBE2iSAAag@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>Hello,<br>
</div>
I am in process of designing opensips which can handle
a million users, hypothetically 200,000 registrations
and 500CPS capacity. I've been reading a lot and
learnt that TCP design is blocking and not suitable
for huge volumes. <br>
</div>
My requirement was to have TLS between endpoints and
Opensips and hence riding over TCP is the only option. I
needed some expert suggestions on what things should be
taken care of when planning a large deployment over TCP.<br>
</div>
I have built similar stuff on UDP and I trust it heavily
as it has performed perfectly as expected. But when it
comes to TCP I'm a bit clueless.<br>
</div>
I've read about lot of global parameters that is now
available for asynchrous tcp operations. Is it really
helpful when planning for scalable environments??<br>
<br>
</div>
Thanks for any suggestions !!<br>
<br>
W/regards,<br>
</div>
Jayesh<br>
</div>
<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>