MongoDB : Document-Oriented NoSQL Database

learn more… | top users | synonyms

1
vote
2answers
1k views

Mongo replicated shard member not able to recover, stuck in STARTUP2 mode

I have following setup for a sharded replica set in Amazon VPC: mongo1: 8G RAM Duo core (Primary) mongo2: 8G RAM Duo core (Secondary) mongo3: 4G RAM (Arbiter) Mongo1 is the primary ...
6
votes
1answer
56 views

Overview of how MongoDB uses its various threads

On one instance I have MongoDB using ~85 threads. In lieu of having time to investigate directly, I am curious: What are the threads used for? Do they fall into a few high-level usage categories? ...
4
votes
1answer
41 views

MongoDB problems recovering a member of the replica set

I have a sharded database with 2 replica sets (RS1 and RS2) each one of the RSs with 2 servers. I had a problem yesterday with one member of the RS2, the mongod instance crashed throwing an error. ...
3
votes
1answer
28 views

Primary replica set server goes secondary after secondary fails

I have a 2 servers replica set that, after the secondary fails the primary goes into secondary mode while the secondary is in STARTUP2 (recovering). The problem with this is that I can't use the ...
2
votes
1answer
163 views

Limit memory used for mongoDb

Is there any way to limit using RAM for mongodb on Debian? I'm looking for a solution fo about 8 hours, but have no results.
2
votes
1answer
77 views

Best embed/reference/field strategy for many inserts (mongo)

I'm building a gaming backend with Mongo, and have some issues on how to best design the schema to maximize performance and database size. My models: User Match -ReferenceMany (User) ...
2
votes
1answer
532 views

Mongo connection failing with 'Transport endpoint is not connected'

I have a 2 server installation. A web server with Apache and a DB server with MongoDB. I am load testing it, and on ~300 RPS I am getting this error: PHP Fatal error: Uncaught exception ...
1
vote
1answer
38 views

MongoDB: move documents before capping

The cappedCollection concept works well for most of my projects where cleaning old data without care makes sense. For another projects, I need a more complex and safe concept. The requirement is ...
1
vote
1answer
53 views

Mongo replication lag slowly increasing

I am running a replica-set in production with slaveOk = false using mongo 2.0.7 in AWS The replication lag on one of the servers is close to 58 hours. This replication lag is sometimes decreasing ( at ...
0
votes
1answer
96 views

How quickly repiar mongo database 1TB on production

help me, production server is down every 15 min, i don't know how can fix it without lock Tue May 28 14:26:17.803 [conn7] Assertion: 10334:BSONObj size: 0 (0x00000000) is invalid. Size must be ...
0
votes
1answer
146 views

Choosing shard key and friendly URL Ids for my MongoDB

I have decided to use MongoDB as my Database for a web application. However, I have some difficulties to get started and I hope that you can help me out with a few questions. I am developing my ...
4
votes
0answers
104 views

Management tool for managing MongoDB sharded cluster

Is there a database management software for MongoDB that makes it easy to create a cluster, add shards, backup shards and all the complicated stuff. There are some many MongoDB clients but they are ...
2
votes
0answers
83 views

automated data sync after Primary node is down

I have this scenario, using version 2.2.2: Node A, Primary, Priority: 10, Wireless network Node B, Secondary, Priority: 9, VM Server1 Node C, Secondary, Priority: 8, VM Server1 Sequence: In Node ...
1
vote
0answers
18 views

Store large hierarchy in NoSQL each day and compare

I'm in the process of creating a utility that stores a fairly large hierarchy into a NoSQL document. The data of this is similar to an Active Directory / LDAP structure which contains sub groupings, ...
1
vote
0answers
28 views

Add new shard - always best?

In our setup, we currently have 3 shard set sharded cluster, each shard being a replica set of 3. Our writes are about to go up significantly to implement a new feature, and we know the extra data ...
1
vote
0answers
75 views

How can I use mongoDB efficiently in this scenario?

I'm trying to build a system of documents that have hundreds of tags assigned to them, but each document-tag association has a certain condition it has to also meet so the document would be returned: ...
0
votes
0answers
15 views

MongoDB fast upsert

For non-incremental, but overlapping, imports, I worry about upserts to be very slow and locking the resources for hours. From different sources, I receive 1 json dump per day per source for up to 3 ...
0
votes
0answers
17 views

Bechmarking for MongoDB vs MySQL

I know that MongoDB will use available free memory for caching, and swap to disk as needed to yield memory to other applications on the same server. For the best performance you'll want to have enough ...
0
votes
0answers
54 views

MongoDB master - slave not syncing anymore

I have a setup with two MongoDB instances, one master and one slave. The sync worked perfectly fine for quite a while now, but suddenly stopped. The major problem is, that the guy who setup the ...
0
votes
0answers
37 views

The best approach to index dynamic query in MongoDB

I am working on log managment system where user will be able to upload logs from file. I have 'event' collection where I store all events from all sources (each source can have different log format ...
0
votes
0answers
88 views

MongoDB: group and document size limitation with aggregation and MapReduce

Hitting the limitations of MongoDB (in a single machine environment), I wonder which part of MapReduce and aggregation with group/$group is causing the troubles. Usually I use a mix of MR/Aggregation ...
0
votes
0answers
36 views

AWS Marketplace Mongo, how to create replica

I am new to mongo, one of the first things it appears needs to be done is to create mongo replica sets as this avoids mongo write locking issues. I set up mongo on AWS by getting mongo off the AWS ...
0
votes
0answers
93 views

To scale horizontally, is MySQL with sharding, memcache and master-slave replication better than MongoDB

I am building an api, to share discounts between users. Each discount can be linked with several users, using joins and many to many relationships. Currently I am using MySQL and I am looking to ...
0
votes
0answers
148 views

Why this query takes 500 seconds to complete even though I got all the compound index right?

I tried this query db.tablebusiness.find({ "LongitudeLatitude" : { "$nearSphere" : [106.772835, -6.186753], "$maxDistance" : 0.053980478460939611 }, "Prominent" : { "$gte" : 15 }, "indexContents" : { ...
0
votes
0answers
65 views

How can we combine $within and $nearSphere in mongodb

Say I am looking for the nearest location that contain the word seaworld. I don't want mongodb to "scan" an area too wide. So I want to limit it I send db.tablebusiness.find({ "LongitudeLatitude" ...
-1
votes
0answers
24 views

MongoDB Schema for Users and Admin

I'm new to schema design in MongoDB. The web app allow users to create their account and login with their email address and password. Also, there is an admin dashboard of the web app which can be ...