Reputation
951
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 11
Newest
 Caucus
Impact
~21k people reached

Jul
27
awarded  Caucus
Jul
27
answered How to get minimum value in pyMongo
Jul
21
comment Backup with mongoexport or mongodump?
It sounds like you're looking for an export rather than a backup. If you only export a subset of fields, presumably you won't be able to restore that and have a fully workable database. There are a few other options to consider: encrypt any fields with sensitive data (via application code) so that you can do a normal mongodump or filesystem snapshot backup, or write a custom export if mongoexport doesn't do what you need. Any tools or programs that read data from mongod could alter your working set if your data to export is bigger than avail RAM. Filesystem snapshots are less disruptive
Jul
18
comment Bypassing LDAP for MongoDb Users
MongoDB Enterprise is only available with a commercial support subscription or trial, so you should probably be filing an enquiry directly with MongoDB: contact form.
Jul
16
answered mongoDB: querying for a document that has an object reference
Jul
15
answered MongoDB sharding
Jul
7
answered Adding wiredtiger nodes to a non-wiredtiger replica set
Jul
6
comment Adding wiredtiger nodes to a non-wiredtiger replica set
Setting the tcp_keepalive_time has definitely fixed the problem for other users with the same issue. I don't think you have a choice of not going through the Azure balancer or some other network gear that has the keepalive issue, so it's definitely worth a try. Note: In case you didn't check my profile .. I work for MongoDB ;-).
Jul
6
comment Adding wiredtiger nodes to a non-wiredtiger replica set
tcp_keepalive_time should be lowered as to 120 as per the production notes: "The TCP keepalive on the Azure load balancer is 240 seconds by default, which can cause it to silently drop connections if the TCP keepalive on your Azure systems is greater than this value. You should set tcp_keepalive_time to 120 to ameliorate this problem."
Jul
3
comment Adding wiredtiger nodes to a non-wiredtiger replica set
What is your tcp_keep_alive setting? That's the key one for Azure (especially if you are getting network timeouts). Insufficient ulimits will generally catch you at a later point in the initial sync process.
Jul
3
comment Adding wiredtiger nodes to a non-wiredtiger replica set
Have you reviewed the production notes for Linux & Azure? In particular I would make sure you have reduced the tcp_keep_alive timing to 120 seconds and increased your ulimits from the default before doing the initial sync.
Jul
3
comment Adding wiredtiger nodes to a non-wiredtiger replica set
You have to resync the data because the storage formats on disk are different. Are you getting a specific error during the initial sync? What is your specific O/S version and hosting type (eg AWS, Azure, bare metal, ...)?
Jul
2
comment MongoDB fsyncUnlock won't unlock occasionally on Windows
What version of MongoDB are you using (and if MongoDB 3.0, what storage engine)?
Jun
29
comment Ring topology support of MongoDB ReplicaSet and Sharding?
NB: Not directly related to the topology question, but you should definitely upgrade to the latest production version for your branch of MongoDB (currently 2.4.14) as there have been a number of important bug, stability, and security fixes in the two years since 2.4.5 was released (ref: release notes for MongoDB 2.4).
Jun
29
answered Ring topology support of MongoDB ReplicaSet and Sharding?
Jun
27
revised What data structure is used for MongoDB 3.x geospatial indexes?
Clean up wording of question title
Jun
27
comment MongoDB C# driver fails to reconnect after stepDown
Assuming you have the correct connection string, the expected behaviour is that the driver will automatically discover any changes in your deployment as a result of elections or replica set / sharding configuration. There will be a brief window of exceptions raised for situations where a primary is currently unavailable, but writes will switch to a newly elected primary. Can you include an example of your connection string?
Jun
27
suggested approved edit on What data structure is used for MongoDB 3.x geospatial indexes?
Jun
27
comment Mongo is using 5-7% of CPU, so why is my computer so slow?
CPU generally isn't the limiting factor for MongoDB, particularly if you are doing simple inserts. If the whole instance is slow, I/O and memory are more likely resource constraints .. you need to look at metrics such as iostat and page faults. You also haven't indicated your EC2 instance type or storage configuration, but I wouldn't have any great performance expectations for free tier or low cost instances (eg. micro & small ).
Jun
27
answered how to make secondary slave as readable in MongoDB?