<div dir="ltr">I need some clarification on cluster_mode and working_mode_preset parameter . <div><br></div><div>modparam("usrloc", "location_cluster", 1)<br>modparam("usrloc", "working_mode_preset", "federation-cachedb-cluster")<br>modparam("usrloc", "cluster_mode", "federation-cachedb")<br>modparam("usrloc", "restart_persistency", "sync-from-cluster")<br><b>1. metadata in mongoDB and exact AOR in opensips memory through which user is registered  .  call work fine even when both registered through different node .</b><br><br>modparam("usrloc", "working_mode_preset", "full-sharing-cluster")<br>modparam("usrloc", "cluster_mode", "full-sharing")<br>modparam("usrloc", "restart_persistency", "sync-from-cluster")<br><b>2. no metadata in mongoDB . AOR of user in opensips memory oly and synced with each node . So call wont work when 2 user register through different node . </b><br><br>modparam("usrloc", "working_mode_preset", "full-sharing-cachedb-cluster")<br>modparam("usrloc", "cluster_mode", "full-sharing-cachedb")<br><b>3. exact AOR in mongoDB . nothing exist in the opensips memory . This even wont work when both user registered through different node . </b><br><br>I was assuming things will work fine in every condition . but its not working . Am I missing anything in the config so that its not working for me in 2nd and 3rd scenario ?<br><br>In any of above case the data is not getting saved in the mysql DB . I think it wont even get saved in mysql DB . when we use working_mode_preset we cant use db_mode . <br><br>I think the 1st option is only preferable .  Is the 2nd and 3rd option has this limitations ? Or I have to add something in the config as well to make this work ?<br></div><div><br></div><div><br></div><div></div><div><br></div><div><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 Wed, Jul 24, 2019 at 6:32 PM Liviu Chircu <<a href="mailto:liviu@opensips.org">liviu@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">
  
    
  
  <div bgcolor="#FFFFFF">
    On 24.07.2019 15:33, Sasmita Panda wrote:<br>
    <blockquote type="cite">
      <div>Questions :</div>
      <div>1. In user location of mongo db , it saves the data of the
        user with the node IP . Its not the actual AOR of the user .
        Where does the actual AOR get saved ? Is that saved in the
        memory of opensips node only?<br>
      </div>
    </blockquote>
    <tt>Correct: the MongoDB only holds metadata, showing where the user
      is reachable from to all nodes.  The actual AoR is saved<br>
      in OpenSIPS memory, which is then sync'ed to the local MySQL
      "location" table, for restart persistency purposes.  See<br>
      the restart_persistency [1] modparam for more details.<br>
    </tt><br>
    <blockquote type="cite">
      <div> 2. As the cluster info is in the mysql DB  , If 1 node will
        get down , then I have to update the DB immediately and restart
        the service ? OR that node will be disabled automatically no
        need of service restart ? <br>
      </div>
    </blockquote>
    <tt>No need to edit anything.  The cluster detects when a node is
      down and acts accordingly.</tt><tt>  <br>
      The cluster nodes will keep sending "probing" pings, to detect
      when it comes back online.</tt><tt><br>
    </tt>
    <p><tt>Regards,</tt><br>
    </p>
    <tt></tt><tt>[1]: </tt><tt><a href="https://opensips.org/html/docs/modules/3.0.x/usrloc.html#param_restart_persistency" target="_blank">https://opensips.org/html/docs/modules/3.0.x/usrloc.html#param_restart_persistency<br>
        <br>
      </a></tt>
    <pre class="gmail-m_3485052808611004700moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="gmail-m_3485052808611004700moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    <a href="https://opensips.org/html/docs/modules/3.0.x/usrloc.html#param_restart_persistency" target="_blank"><br>
    </a>
  </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>