top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to set assign databases not replicate from primary to secondary in MongoDB?

0 votes
196 views

some same cases data is not important, and replicate them from primary to secondary will waste servers performance. Is there any ways to config?

posted Dec 15, 2016 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

We have a 3 server MongoDB cluster where there is one Primary, one secondary and one hidden. In one of our collections data gets only inserted by the front end APP and cannot be deleted. I am seeing a strange behavior - when I run count query on this collection (from shell) I always see secondary's count 1-2 more than the count on Primary.

Is this possible or is there some mismatch in my configuration?

0 votes

Please advise if a NodeJS app should keep its historical data in a separate MongoDB databases instead of keeping them together with the application data?
For instance, 'transactions' collection and 'transactionhistories' collection, will it be better to store in different databases or single database for the same NodeJS app? Thanks!

...