<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Hi Sasmita!<br>
<br>
We have some plans to do some more testing on the module,
including your "connect directly to replica set" 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 "mongos" instance, along with 3 config server instances
(these are needed by mongos, and ensure proper write consistency),
and configure "cachedb_mongodb" to use this new "mongos" node.<br>
<br>
A mongos instance is aware of all the replica sets (aka "shards").
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'll go from there! [1]<br>
<br>
[1]: <a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues">https://github.com/OpenSIPS/opensips/issues</a><br>
</tt>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 06.06.2016 11:23, Sasmita Panda
wrote:<br>
</div>
<blockquote
cite="mid:CALf-Q44Ua7knR1gmnrzkLC4DnFCdFPSdHcMAPHUxVb=HfnSFVA@mail.gmail.com"
type="cite">
<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 class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: child process 5278 exited by a
signal 11</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: core was generated</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:handle_sigs">INFO:core:handle_sigs</a>: terminating due to SIGCHLD</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:sig_usr">INFO:core:sig_usr</a>: signal 15 received</div>
<div> <a class="moz-txt-link-freetext" href="INFO:core:cleanup">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 class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr"><b><i>Thanks & 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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>