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