[OpenSIPS-Users] Need some help in clusterer table and its use in opensips 3.2 .
Sasmita Panda
spanda at 3clogic.com
Tue May 17 09:43:48 UTC 2022
Hi,
I am using location clustering .
Only the location table data is getting synched in the cluster .
My concern is , when I am saving the node information in clusterer table ,
is there a way I can define the cluster ID in config ?
So , if I have 2 different clusterer then my node could identify itself
through cluster_id and node_id combination .
In opensips 2.2 , there is a parameter cluster_id to set in config . But in
3.2 this parameter is not present .
*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
On Tue, May 17, 2022 at 1:32 PM Răzvan Crainea <razvan at opensips.org> wrote:
> Hi, Sasmita!
>
> I don't fully understand your use case - you said it is using node 1 in
> cluster 1 - it is using it for what?
> A cluster is used for a specific replication feature (i.e. dialog
> replication, ratelimit pipes replication). When you specify you want to
> do a specific replication, that's where you specify the cluster (i.e.
> dialog replication [1]). So what kind of replication feature are you
> using, that is not properly identifying the nodes?
>
> [1]
>
> https://opensips.org/docs/modules/3.2.x/dialog.html#param_dialog_replication_cluster
>
> Răzvan Crainea
> OpenSIPS Core Developer
> http://www.opensips-solutions.com
>
> On 5/12/22 11:43, Sasmita Panda wrote:
> > Hi ,
> >
> > my_node_id parameter is to define that particular node id . But how will
> > I define the cluster_id parameter? I want to differentiate both clusters
> .
> > I have added my_node_id parameter already . But by default its looking
> > for cluster_id:1 . But in the database I have defined cluster_id :2 .
> >
> > modparam("clusterer", "my_node_id", 1)
> >
> > How will I associate the database and config ?
> >
> > */Thanks & Regards/*
> > /Sasmita Panda/
> > /Senior Network Testing and Software Engineer/
> > /3CLogic , ph:07827611765/
> >
> >
> > On Thu, May 12, 2022 at 1:20 PM Chester Lee <chester at zigbang.com
> > <mailto:chester at zigbang.com>> wrote:
> >
> > Hi,
> >
> > You can specify cluster id in the config. please refer to
> >
> https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id
> > <
> https://opensips.org/docs/modules/3.2.x/clusterer.html#param_my_node_id>
> >
> > I hope this helps.
> >
> > Regards
> > Chester
> >
> >
> > 2022년 5월 12일 (목) 오후 4:06, Sasmita Panda <spanda at 3clogic.com
> > <mailto:spanda at 3clogic.com>>님이 작성:
> >
> > Hi All ,
> >
> > I have 2 opesips cluster each cluster has 2 opensips node . I
> > want to define all the cluster node information in a single
> > opensips database .
> >
> > My clusterer table looks like below .
> >
> >
> +----+------------+---------+-----------------------+-------+-----------------+----------+----------+-------+----------------+
> > | id | cluster_id | node_id | url | state |
> > no_ping_retries | priority | sip_addr | flags | description |
> >
> +----+------------+---------+-----------------------+-------+-----------------+----------+----------+-------+----------------+
> > | 1 | 1 | 1 | bin:1.1.1.1:5555
> > <http://1.1.1.1:5555> | 1 | 3 | 50 |
> > NULL | seed | Node A |
> > | 2 | 1 | 2 | bin:2.2.2.2:5555
> > <http://2.2.2.2:5555> | 1 | 3 | 50 |
> > NULL | seed | Node B |
> > | 3 | 2 | 1 | bin:3.3.3.3:5555
> > <http://3.3.3.3:5555> | 1 | 3 | 50 |
> > NULL | NULL | cluster2 Node1 |
> > | 4 | 2 | 2 | bin:4.4.4.4:5555
> > <http://4.4.4.4:5555> | 1 | 3 | 50 |
> > NULL | NULL | cluster2 Node2 |
> >
> +----+------------+---------+-----------------------+-------+-----------------+----------+----------+-------+----------------+
> >
> > In pensips 3.2 there is no cluster_id parameter to define in the
> > config . In the config I don't want to add the IP in the config
> > . For cluster 2 , when I am defining node 1 , its taking the
> > value of node 1 of cluster 1 .
> >
> > Is this possible anyhow or I have to save the data in a
> > different database ?
> >
> >
> > */Thanks & Regards/*
> > /Sasmita Panda/
> > /Senior Network Testing and Software Engineer/
> > /3CLogic , ph:07827611765/
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
> >
> >
> >
> > --
> > ______
> >
> >
> > 이 기 원 CTO실 / 매니저
> > (주)직방 | 010.6479.1321 | chester at zigbang.com
> > <mailto:chester at zigbang.com>
> > <http://company.zigbang.com>
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> > <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
> _______________________________________________
> 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/20220517/28018eac/attachment-0001.html>
More information about the Users
mailing list