<div dir="ltr"><div>This may be a good place to ask this, or perhaps not.</div><div><br></div><div>Is it possible to define the DB rows in such a way that causes a priority-based behavior? Prefer this one, move to the next if the first isn't available, etc. As I think through it, it may be possible to do that manually in the script by calling different groups, but it would be more convenient if it just worked as a function of the schema.</div><div><br></div><div>For example, the way one defines gateways for use in the dr_carriers table as part of the drouting module. Something like that if that makes sense.<br></div><div><br></div><div><br></div><div>Regards,<br></div><div>Jeff</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 20, 2021 at 9:38 AM John Burke via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hey Mark,<br>
<br>
The load balancing weights are set on a per node basis via their
socket URL. If no weight is explicitly set, then the default is 1.<br>
<br>
schema:<br>
<proto>:<ip>:<port>(=<weight>)<br>
<br>
ex:<br>
udp:192.168.1.200:22222=25<br>
<br>
There currently is no way to dynamically change the weight of a
node, although there's an open PR [1] which would allow for weights
to be changed via the "rtpengine_enable" MI command.<br>
<br>
[1] <a href="https://github.com/OpenSIPS/opensips/pull/2600" target="_blank">https://github.com/OpenSIPS/opensips/pull/2600</a><br>
<br>
Thanks,<br>
John Burke<br>
<br>
<br>
On 8/20/21 5:00 AM, Mark Allen wrote:<br>
<blockquote type="cite">
<div dir="ltr">
<div>I've not been able to find the answer to this. Can anyone
help?</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, 22 Jul 2021 at
11:02, Mark Allen <<a href="mailto:mark@allenclan.co.uk" target="_blank">mark@allenclan.co.uk</a>> wrote:<br>
</div>
<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">In the rtpengine documentation [1] in the
section "1.2 - Multiple RTP proxy usage" it says...
<div><br>
</div>
<div>
<p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)">
"The balancing inside a set is done automatically by
the module based on the weight of each <acronym>RTP</acronym> proxy
from the set."</p>
<p style="font-family:Helvetica,Arial;font-size:12px;text-align:justify;color:rgb(0,0,0)"><br>
</p>
...how is the weighting determined? Is there a parameter
to allocate a weighting value, is weighting allocated by
the software dynamically (and if so, based on what
criteria?), or are all proxies weighted the same? </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>[1] <a href="https://opensips.org/html/docs/modules/3.1.x/rtpengine.html#idp4123616" target="_blank">https://opensips.org/html/docs/modules/3.1.x/rtpengine.html#idp4123616</a></div>
<div><br>
</div>
<div><br>
</div>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>