<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Jorge,<br>
<br>
The errors you mentioned are not LB related at all it seems that
your rtpproxy is not answering (and opensips blocking in
communication with it).<br>
<br>
To try to see what is your slowest part in the script, you can do
script troubleshooting via exec_msg_threashold (see
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsCoreFcn18#toc49">http://www.opensips.org/Resources/DocsCoreFcn18#toc49</a>) - this will
list you the most time consuming functions from the script if the
threshold is hit.<br>
<br>
Regarding the DB, I suggest db_mode 2 (delayed) as it has a lower
impact on performance.<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>
<br>
On 12/07/2012 12:53 AM, Jorge Ortea wrote:
<blockquote cite="mid:DUB002-W11525D1CDF5E83F3F765D04DC450@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hello Bogdan-Andrei,
<div><br>
</div>
<div><br>
</div>
<div>
<div>When I said that load_balance function returns null I
meant that after run it $du is null.</div>
<div><br>
</div>
<div>These are some errors just before that load_balance
function fails:</div>
</div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div>ERROR:mediaproxy:send_command: did timeout waiting for an
answer</div>
<div><span style="font-size: 12pt;">ERROR:uri:check_username: No
authorized credentials found (error in scripts)</span></div>
<div>ERROR:uri:check_username: Call {www,proxy}_authorize before
calling check_* functions!</div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div>
<div>I don't know if these errors mean anything for you. My
OpenSIPS version is 1.6.4-2</div>
<div><br>
</div>
<div><br>
</div>
<div>Parsing your words I think that perhaps
OpenSIPS+Mediaproxy hasn't hardware resources enough .
Further db_mode parameter of dialog module is 1-REALTIME,
Can be it detrimental to performance too?</div>
<div><br>
</div>
<div>My DB is MySQL 5.1 with Engine=MyISAM. Is there any
document about optimal configuration parameters for mysql ? </div>
</div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">Very much Thanks.</span></div>
<div><span style="font-size: 12pt;">Regards.</span></div>
<div><span style="font-size: 12pt;"> </span></div>
<div><br>
<br>
<div>
<hr id="stopSpelling">Date: Thu, 6 Dec 2012 15:33:27 +0200<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
CC: <a class="moz-txt-link-abbreviated" href="mailto:darham@hotmail.com">darham@hotmail.com</a><br>
Subject: Re: [OpenSIPS-Users] Load Balancing<br>
<br>
<tt>Hi Jorge,<br>
<br>
LB modules is quite stable, maybe the status was not
updated. <br>
<br>
I cannot comment on the issues you had with the throughput
as LB depends on Dialog, dialog uses DB, so it really
depends on how good is your configuration.<br>
<br>
LB function cannot return NULL, but a negative return code
if no destination was selected - the logs should indicate
you the nature of the failure. It is all about reading
logs :)<br>
<br>
Now, about DR - with 1.8 you can spread the load over
multiple GWs in the same rule - simply put all the GWs in
a list in the rule and when doing do_routing, use the W
(weight parameter).<br>
<br>
Regards,<br>
</tt>
<pre class="ecxmoz-signature">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<br>
On 12/06/2012 02:11 PM, Jorge Ortea wrote:
<blockquote
cite="mid:DUB002-W3112761F453ACA2AA69848DC450@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:12pt;font-family:Calibri;}
--></style>
<div dir="ltr">Hi all,<br>
<br>
I have a voip platform with OpenSIPS and several
asterisk behind. I'm using Load-Balancer module, but I
don't seem very reliable, sometimes when take place very
much CPS, load_balance function returns null.<br>
<br>
I noticed that Load-Balancer module has beta status,
perhaps that is why this module has not enough
stability. However, I don't know how can I reach
distribute calls on platform, Drouting module does not
seem can to do it, this module flood delivers up to the
next, Am I right?<br>
<br>
What other option can offer OpenSIPS?<br>
<br>
Thanks.<br>
Regards.<span id="ecxresult_box" class="ecxshort_text"
lang="en"><span class="ecxhps"><br>
</span></span> </div>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
</div>
</div>
</blockquote>
</body>
</html>