<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hi,<br>
        <br>
        In DB mode 2, DB only replication is not enough as the mem cache
        on backup machine will never be updated with the registrations.
        So you end up with a discrepancy (on backup) between what
        opensips has in memory and what you have in DB (in terms of
        registered contacts).<br>
        You definitely need a data level replication too (to update the
        usrloc cache on the backup too).<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 01.09.2014 18:16, Schneur Rosenberg wrote:<br>
    </div>
    <blockquote
cite="mid:CANvjR0WC8CG0B0+FiY1ggy9jkQtaSp_SsJsAf9m5rbKQrvXO3w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Its replicated at the DB level, using Mysql
        replication</div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Sep 1, 2014 at 3:09 PM,
          Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:bogdan@opensips.org"
              target="_blank">bogdan@opensips.org</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <div><tt>Hi,<br>
                  <br>
                  How do you get the registrations "replicated" on the
                  backup server ? (the in memory data)<br>
                  <br>
                  Take a look at the "m" flag for "save()" function:<br>
                      <a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294034"
                    target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/registrar.html#id294034</a><br>
                  <br>
                  Regards,<br>
                </tt>
                <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                <div>
                  <div class="h5"> On 27.08.2014 20:14, Schneur
                    Rosenberg wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">Hi
                      <div><br>
                      </div>
                      <div>I'm using <span>usrloc</span> with db_mode
                        set to 2, I'm using a backup server which is
                        always running and is using the same database,
                        my problem is that the second server constantly
                        removes records from the location table, is it
                        possible to  disable the <span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">expired

                          contacts timer? would setting timer_interval
                          to 0 disable the timer? I can write a <span>cron</span>
                          that would delete expired contacts. is there
                          any downside to this? does the timer do
                          anything else? the documentation says "</span><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify">The

                          timer deletes all expired contacts and flushes
                          all modified or new contacts to database" I'm
                          not exactly what they mean by flushing the
                          modified or new contacts.</span></div>
                      <div><span
style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;text-align:justify"><br>
                        </span></div>
                      <div style="text-align:justify"><font
                          color="#000000" face="Helvetica, Arial"><span
                            style="font-size:12px">Both servers have
                            exact same system time so that's not the
                            issue.</span></font></div>
                      <div style="text-align:justify"><font
                          color="#000000" face="Helvetica, Arial"><span
                            style="font-size:12px"><br>
                          </span></font></div>
                      <div style="text-align:justify"><font
                          color="#000000" face="Helvetica, Arial"><span
                            style="font-size:12px">If there is a better
                            way please let me know.</span></font></div>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                  </div>
                </div>
                <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>