<div dir="ltr">opensips-cli -x mi lb_list<br>{<br>    "Destinations": [<br>        {<br>            "uri": "sip:<a href="http://10.7.0.201:5070">10.7.0.201:5070</a>",<br>            "id": 1,<br>            "group": 1,<br>            "enabled": "yes",<br>            "auto-reenable": "on"<br>        }<br>    ],<br>    "Resources": [<br>        {<br>            "name": "PSTN",<br>            "max": 1,<br>            "load": 0<br>        }<br>    ]<br>}<div><br></div><div>but when i do call lb return retcode <span class="emphasis" style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><em>-3 (false)</em></span><span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"> - no destinations available (the requested resources did not match any active destination)</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 28 мая 2019 г. в 11:02, Антон Ершов <<a href="mailto:suharik71@gmail.com">suharik71@gmail.com</a>>:<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">node 1<div>loadmodule "load_balancer.so"<br>modparam("load_balancer", "db_url",  "postgres://<a href="http://postgres:1q2w3e4r@10.3.0.1/opensips1" target="_blank">postgres:1q2w3e4r@10.3.0.1/opensips1</a>")<br>modparam("load_balancer", "probing_reply_codes", "501, 503, 403")<br>modparam("load_balancer", "cluster_id", 1)<br>modparam("load_balancer", "cluster_sharing_tag", "node_SKN")<br>modparam("load_balancer", "probing_from", "<a href="mailto:sip%3Ahchecker@10.50.0.1" target="_blank">sip:hchecker@10.50.0.1</a>")<br>modparam ("load_balancer", "probing_verbose", 1)<br></div><div><br></div><div>node2</div><div>loadmodule "load_balancer.so"<br>modparam("load_balancer", "db_url",  "postgres://<a href="http://postgres:1q2w3e4r@10.3.0.1/opensips1" target="_blank">postgres:1q2w3e4r@10.3.0.1/opensips1</a>")<br>modparam("load_balancer", "probing_reply_codes", "501, 503, 403")<br>modparam("load_balancer", "cluster_id", 1)<br>modparam("load_balancer", "cluster_sharing_tag", "node_PRM")<br>modparam ("load_balancer", "probing_verbose", 1)<br>modparam("load_balancer", "probing_from", "<a href="mailto:sip%3Ahchecker@10.50.0.1" target="_blank">sip:hchecker@10.50.0.1</a>")<br></div><div><br></div><div>options send both node. only one node receives answer. In log i see what one node disable destination, second node re-enable destination.</div><div><br></div><div>log node1</div><div>INFO:load_balancer:set_dst_state_from_rplcode: disable destination 1 <sip:<a href="http://10.7.0.201:5070" target="_blank">10.7.0.201:5070</a>> after 408 reply on probe<br></div><div><br></div><div>log node 2</div><div>INFO:load_balancer:set_dst_state_from_rplcode: re-enable destination 1 <sip:<a href="http://10.7.0.201:5070" target="_blank">10.7.0.201:5070</a>> after 200 reply on probe<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вт, 28 мая 2019 г. в 08:53, Alexey Kazantsev via Users <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>>:<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>Hello Anton,<br><br>you'd better show here the load_balancer part of your config,<br>as it has some parameters regarding to working in the cluster.<br><br><br><blockquote style="border-left:1px solid rgb(8,87,166);margin:10px;padding:0px 0px 0px 10px">
        Понедельник, 27 мая 2019, 17:17 +05:00 от Антон Ершов <<a href="mailto:suharik71@gmail.com" target="_blank">suharik71@gmail.com</a>>:<br>
        <br>
        <div id="gmail-m_670192786110863303gmail-m_600325296890668831">






<div class="gmail-m_670192786110863303gmail-m_600325296890668831js-helper gmail-m_670192786110863303gmail-m_600325296890668831js-readmsg-msg">
        
        <div>
                
                
            <div id="gmail-m_670192786110863303gmail-m_600325296890668831style_15589594611987192234_BODY"><div class="gmail-m_670192786110863303gmail-m_600325296890668831class_1559025838"><div dir="ltr"><pre style="unicode-bidi:isolate;border:none;padding:0px 0.14em 0px 0px;margin-top:0px;margin-bottom:0px;font-family:inherit;overflow:hidden;width:275px;white-space:pre-wrap;color:rgb(33,33,33);height:336px;font-size:16px;line-height:24px" dir="ltr" id="gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-target-text_mailru_css_attribute_postfix" class="gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-data-text_mailru_css_attribute_postfix gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-ta_mailru_css_attribute_postfix gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-text-small_mailru_css_attribute_postfix"><pre style="unicode-bidi:isolate;border:none;padding:0px 0.14em 0px 0px;margin-top:0px;margin-bottom:0px;font-family:inherit;overflow:hidden;width:275px;white-space:pre-wrap;height:336px;line-height:24px" dir="ltr" id="gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-target-text_mailru_css_attribute_postfix" class="gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-data-text_mailru_css_attribute_postfix gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-ta_mailru_css_attribute_postfix gmail-m_670192786110863303gmail-m_600325296890668831gmail-tw-text-small_mailru_css_attribute_postfix"><span id="gmail-m_670192786110863303gmail-m_600325296890668831gmail-docs-internal-guid-62dfbfe9-7fff-d3cf-f8a9-db073b689815_mailru_css_attribute_postfix"><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" dir="ltr"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">Hello friends!</span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" dir="ltr"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline"> I'm testing new features of opensips 3. And I discovered the following situation.</span></p><br><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" dir="ltr"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">Configured cluster module in Anycast Сonfiguration. Load balanser module</span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" dir="ltr"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">has cluster_sharing_tag. The lb module sends "options" to the host from the common address, but the answer goes to the nearest opensips node of the cluster. From what the remote host in lb is considered inaccessible.</span></p><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt" dir="ltr"><span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline">Something is not configured or I did not understand correctly how the load balanser should work in a cluster</span></p><br></span></pre></pre></div>
</div></div>
            
                
                    <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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div>
                
             
        
                
        </div>

        
</div>


</div>
</blockquote>
<br>
<br>-----------------------------------------------<br><span style="font-size:15px">BR, Alexey</span><br style="font-size:15px"><span style="font-size:15px"><a href="http://alexeyka.zantsev.com/" target="_blank">http://alexeyka.zantsev.com/</a></span><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>
</blockquote></div>