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 <[email protected] <mailto:[email protected]>> 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 <[email protected]
    <mailto:[email protected]>>님이 작성:

        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
        [email protected] <mailto:[email protected]>
        http://lists.opensips.org/cgi-bin/mailman/listinfo/users
        <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>



-- ______


    이 기 원 CTO실 / 매니저
    (주)직방 | 010.6479.1321 | [email protected]
    <mailto:[email protected]>
    <http://company.zigbang.com>
    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users
    <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to