[OpenSIPS-Users] Load Balancer cluster Opensips 3.0
Антон Ершов
suharik71 at gmail.com
Tue May 28 04:02:39 EDT 2019
node 1
loadmodule "load_balancer.so"
modparam("load_balancer", "db_url", "postgres://
postgres:1q2w3e4r at 10.3.0.1/opensips1")
modparam("load_balancer", "probing_reply_codes", "501, 503, 403")
modparam("load_balancer", "cluster_id", 1)
modparam("load_balancer", "cluster_sharing_tag", "node_SKN")
modparam("load_balancer", "probing_from", "sip:hchecker at 10.50.0.1")
modparam ("load_balancer", "probing_verbose", 1)
node2
loadmodule "load_balancer.so"
modparam("load_balancer", "db_url", "postgres://
postgres:1q2w3e4r at 10.3.0.1/opensips1")
modparam("load_balancer", "probing_reply_codes", "501, 503, 403")
modparam("load_balancer", "cluster_id", 1)
modparam("load_balancer", "cluster_sharing_tag", "node_PRM")
modparam ("load_balancer", "probing_verbose", 1)
modparam("load_balancer", "probing_from", "sip:hchecker at 10.50.0.1")
options send both node. only one node receives answer. In log i see what
one node disable destination, second node re-enable destination.
log node1
INFO:load_balancer:set_dst_state_from_rplcode: disable destination 1 <sip:
10.7.0.201:5070> after 408 reply on probe
log node 2
INFO:load_balancer:set_dst_state_from_rplcode: re-enable destination 1 <sip:
10.7.0.201:5070> after 200 reply on probe
вт, 28 мая 2019 г. в 08:53, Alexey Kazantsev via Users <
users at lists.opensips.org>:
> Hello Anton,
>
> you'd better show here the load_balancer part of your config,
> as it has some parameters regarding to working in the cluster.
>
>
> Понедельник, 27 мая 2019, 17:17 +05:00 от Антон Ершов <suharik71 at gmail.com
> >:
>
> Hello friends!
>
> I'm testing new features of opensips 3. And I discovered the following situation.
>
> Configured cluster module in Anycast Сonfiguration. Load balanser module
>
> 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.
>
> Something is not configured or I did not understand correctly how the load balanser should work in a cluster
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> -----------------------------------------------
> BR, Alexey
> http://alexeyka.zantsev.com/
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190528/cde4d5e5/attachment-0001.html>
More information about the Users
mailing list