<div dir="ltr">Thank you so much . It will be helpful for me . </div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b><i>Thanks &amp; Regards</i></b><div><i>Sasmita Panda</i></div><div><i>Network Testing and Software Engineer</i></div><div><i>3CLogic , ph:07827611765</i></div></div></div></div>
<br><div class="gmail_quote">On Tue, Jun 7, 2016 at 4:41 PM, Liviu Chircu <span dir="ltr">&lt;<a href="mailto:liviu@opensips.org" target="_blank">liviu@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">
    <tt>To avoid those kind of problems, I would recommend putting one
      &quot;mongos&quot; instance for each OpenSIPS machine, on the same box. This
      way, not only do you avoid problems with the mongos machine going
      down, but you&#39;ll speed up query times as well, making your
      OpenSIPS workers more responsive!<br>
    </tt><span class="">
    <pre cols="72">Liviu Chircu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    </span><div><div class="h5"><div>On 07.06.2016 13:20, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi Liviu ,
        <div><br>
        </div>
        <div>     I just have one question .  I have implemented
          opensips with mongodb shard cluster . I have one replica set
          with three member . I have three config server for each and
          mongos service running . </div>
        <div><br>
        </div>
        <div>     What I wanted to know is , the server in which my
          mongos service is running , If that machine is get down what
          will happen ?</div>
        <div>I need to monitor that machine so that it wont go down ? Is
          this show ?</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div data-smartmail="gmail_signature">
            <div dir="ltr"><b><i>Thanks &amp; Regards</i></b>
              <div><i>Sasmita Panda</i></div>
              <div><i>Network Testing and Software Engineer</i></div>
              <div><i>3CLogic , ph:07827611765</i></div>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Mon, Jun 6, 2016 at 4:41 PM, Liviu
          Chircu <span dir="ltr">&lt;<a href="mailto:liviu@opensips.org" target="_blank">liviu@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"> <tt>Thank you,
                Sasmita! Will reply here as soon as there is progress on
                the matter.</tt><span><br>
                <pre cols="72">Liviu Chircu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              </span>
              <div>
                <div>
                  <div>On 06.06.2016 13:55, Sasmita Panda wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">Hi ,
                      <div><br>
                      </div>
                      <div> I have created an issue with detailed steps
                        . Bellow is the issue ID . Let me know if the
                        issue will get fixed .</div>
                      <div><br>
                      </div>
                      <div>  <a href="https://github.com/OpenSIPS/opensips/issues/895" target="_blank">https://github.com/OpenSIPS/opensips/issues/895</a><br>
                      </div>
                      <div><br>
                      </div>
                      <div>Thanks </div>
                    </div>
                    <div class="gmail_extra"><br clear="all">
                      <div>
                        <div data-smartmail="gmail_signature">
                          <div dir="ltr"><b><i>Thanks &amp; Regards</i></b>
                            <div><i>Sasmita Panda</i></div>
                            <div><i>Network Testing and Software
                                Engineer</i></div>
                            <div><i>3CLogic , ph:07827611765</i></div>
                          </div>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">On Mon, Jun 6, 2016 at
                        3:32 PM, Sasmita Panda <span dir="ltr">&lt;<a href="mailto:spanda@3clogic.com" target="_blank"></a><a href="mailto:spanda@3clogic.com" target="_blank">spanda@3clogic.com</a>&gt;</span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                          <div dir="ltr">Thank you so much for the
                            information . Let me try to deploy with
                            mongos server . 
                            <div><br>
                            </div>
                            <div>I will post the detailed steps for
                              opensips crash as soon as I will be free
                              . </div>
                          </div>
                          <div class="gmail_extra"><span><br clear="all">
                              <div>
                                <div data-smartmail="gmail_signature">
                                  <div dir="ltr"><b><i>Thanks &amp;
                                        Regards</i></b>
                                    <div><i>Sasmita Panda</i></div>
                                    <div><i>Network Testing and Software
                                        Engineer</i></div>
                                    <div><i>3CLogic , ph:07827611765</i></div>
                                  </div>
                                </div>
                              </div>
                              <br>
                            </span>
                            <div>
                              <div>
                                <div class="gmail_quote">On Mon, Jun 6,
                                  2016 at 2:14 PM, Liviu Chircu <span dir="ltr">&lt;<a href="mailto:liviu@opensips.org" target="_blank"></a><a href="mailto:liviu@opensips.org" target="_blank">liviu@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"> <tt>Hi
                                        Sasmita!<br>
                                        <br>
                                        We have some plans to do some
                                        more testing on the module,
                                        including your &quot;connect directly
                                        to replica set&quot; usage case, and 
                                        also bringing it up to date with
                                        the latest mongo driver.
                                        However, it is hard to give you
                                        an estimation for when this work
                                        will start.<br>
                                        <br>
                                        Currently, the fastest way to
                                        fix your problems is for you to
                                        set up a &quot;mongos&quot; instance,
                                        along with 3 config server
                                        instances (these are needed by
                                        mongos, and ensure proper write
                                        consistency), and configure
                                        &quot;cachedb_mongodb&quot; to use this
                                        new &quot;mongos&quot; node.<br>
                                        <br>
                                        A mongos instance is aware of
                                        all the replica sets (aka
                                        &quot;shards&quot;). In your case, it will
                                        initially shard the keys to your
                                        single replica set - thus, it
                                        will hold 100% of the data. As
                                        your data set grows, you may
                                        partition it over to additional
                                        replica sets, which you can
                                        configure into mongos without
                                        modifying anything on the
                                        OpenSIPS side. This way,
                                        failover within a replica set
                                        will also happen transparently,
                                        again, without impacting
                                        OpenSIPS at all.<br>
                                        <br>
                                        PS: if you have a way to 100%
                                        reproduce a crash, please open a
                                        GH ticket describing the steps,
                                        and we&#39;ll go from there! [1]<br>
                                        <br>
                                        [1]: <a href="https://github.com/OpenSIPS/opensips/issues" target="_blank">https://github.com/OpenSIPS/opensips/issues</a><br>
                                      </tt>
                                      <pre cols="72">Liviu Chircu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                                      <div>
                                        <div>
                                          <div>On 06.06.2016 11:23,
                                            Sasmita Panda wrote:<br>
                                          </div>
                                        </div>
                                      </div>
                                      <blockquote type="cite">
                                        <div>
                                          <div>
                                            <div dir="ltr">Hi All ,
                                              <div><br>
                                              </div>
                                              <div>       I am using
                                                opesips-1.11 with
                                                mongodb replica set . I
                                                have 3 members in the
                                                replica set , promary ,
                                                secondary and arbitrary
                                                . </div>
                                              <div><br>
                                              </div>
                                              <div>      Problem 1 :
                                                 Sometime , If primay is
                                                not rechable , the
                                                secondary becomes
                                                primary , But opensips
                                                loss connection from
                                                mongodb . Its wont put
                                                any data in the data
                                                base . My call goes on
                                                but their is not data in
                                                the mongodb database . </div>
                                              <div><br>
                                              </div>
                                              <div>        Problme 2: If
                                                the primay machine is
                                                down then secondary
                                                becomes primary within
                                                some millisecond time  ,
                                                but  opensips crashes
                                                giving bellow error </div>
                                              <div><br>
                                              </div>
                                              <div>     
                                                ERROR:cachedb_mongodb:mongo_con_get:
                                                Failed to run query. Err
                                                = 6, 0 , 0
                                                <div> CRITICAL:core:receive_fd:
                                                  EOF on 10</div>
                                                <div> <a></a><a>INFO:core:handle_sigs</a>:
                                                  child process 5278
                                                  exited by a signal 11</div>
                                                <div> <a></a><a>INFO:core:handle_sigs</a>:
                                                  core was generated</div>
                                                <div> <a></a><a>INFO:core:handle_sigs</a>:
                                                  terminating due to
                                                  SIGCHLD</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:sig_usr</a>:
                                                  signal 15 received</div>
                                                <div> <a></a><a>INFO:core:cleanup</a>:
                                                  cleanup</div>
                                                <div> NOTICE:db_cachedb:destroy:

                                                  destroy module
                                                  db_cachedb ...</div>
                                                <div> NOTICE:cachedb_mongodb:destroy:

                                                  destroy module
                                                  cachedb_mongodb ...</div>
                                                <div><br>
                                                </div>
                                                <div>     If my
                                                  secondary mongodb
                                                  machine is not
                                                  reachable then rather
                                                  connection with db
                                                  breaks for sometime
                                                  but opensips wont
                                                  crashes . But in case
                                                  of Primary opensips
                                                  crashes with above
                                                  error . Is this an
                                                  expected behavior or I
                                                  am doing anything
                                                  wrong . </div>
                                                <div> </div>
                                                <div>      Data loss can
                                                  be bearable but
                                                  application cant be .
                                                  So please let me know
                                                  whats the problem .  
                                                     </div>
                                                <div><br>
                                                </div>
                                                <div>
                                                  <div data-smartmail="gmail_signature">
                                                    <div dir="ltr"><b><i>Thanks
                                                          &amp; Regards</i></b>
                                                      <div><i>Sasmita
                                                          Panda</i></div>
                                                      <div><i>Network
                                                          Testing and
                                                          Software
                                                          Engineer</i></div>
                                                      <div><i>3CLogic ,
                                                          ph:07827611765</i></div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                            </div>
                                            <br>
                                            <fieldset></fieldset>
                                            <br>
                                          </div>
                                        </div>
                                        <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
                                    <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>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                            </div>
                          </div>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
              </div>
            </div>
            <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>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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></blockquote></div><br></div>