MongoDB is a scalable, high-performance, open source, document-oriented database. It supports a large number of languages and application development platforms. Questions about programming should be asked on http://stackoverflow.com.

learn more… | top users | synonyms

0
votes
1answer
34 views

How to access the data of collections from the .ns and other core storage files in mongodb ?

actually my database in mongodb was not accessible after the journal file became of the size > 1 GB . So i restarted the mongod process with a different data path to store the mongodb files in my ...
0
votes
1answer
51 views

Upgrade lock from mongo 2.4 to 2.6 wont go away

I have upgrade 3 months ago a mongoDB sharded cluster from 2.4.9 to 2.6.1 . I haven't faced any issues with the upgrade and my cluster working fine, but i still see the initial lock that required to ...
0
votes
2answers
33 views

MongoDB Non Sharded Environment

We are planning to setup non-sharded MongoDB Instance on Amazon AWS. As per my understanding we need MongoD setup on Primary and Secondary to forms as a replica set. Please advice if we need ...
0
votes
0answers
61 views

create an automatic synchronized copy of data base

I have a system dsn(sqlserver odbc) configured on my computer. The DSN has multiple views of very large size. I want to create a local db that copies the selected view and keep it synced with the ...
0
votes
0answers
620 views

Understanding two types of mongodb log entries for bulk inserts

I have an app which does regular (every 2 minutes) bulk inserts to two identical instances of 2.6.4 mongodb on two servers. Both the instances are hosted on 2 Core, 14GB machine and have only one ...
0
votes
0answers
243 views

Mongodb extremely slow with bulk inserts and showing erratic behavior

I have been massively frustrated by the erratic behaviour of Mongodb's bulk inserts. I'm trying to write 20K documents in a bulk-insert query. Sometimes the inserts take as low as 5 seconds and ...
1
vote
1answer
190 views

Difference between mongod and mongodb upstart jobs

I just noticed that there are two possible ways to start mongodb: service mongodb start (uses /etc/mongod.conf) service mongod start (uses /etc/mongodb.conf) Can someone tell me what's the ...
0
votes
1answer
74 views

Long running query on replica worker set in mongo

Hi I updated my mongo version from 2.4.to 2.6. Now when i see current op in mongos it shows me some queries which are running for long long time. one example is { "opid" : ...
0
votes
1answer
53 views

How to config mongo on a remote server?

I have two servers, one for app(rails) and one for db(mongo).My rails config for mongo will be like this(yaml file): hosts: - xxx.xxx.xxx.xxx:57777 database: admin username: root password: ...
0
votes
0answers
85 views

Index intersection issue with Mongo 2.6.4

I upgraded my system with 2.6.4 binaries to use specifically index intersection. But when i tried this my DB got down. I created these indexes in my collection "a_1_b_1" : 1.2 GB, "c_-1" : 500 MB ...
0
votes
2answers
151 views

How to backup large MongoDB database

What is the recommended way to back up large data sets in MongoDB? Let's say we have a data size in the order of 10TB - how would you back that up? We're considering a hidden, possibly delayed, ...
2
votes
1answer
93 views

MongoDB ReplicaSet reconfig when primary and majority don't exist

http://docs.mongodb.org/manual/tutorial/reconfigure-replica-set-with-unavailable-members/ Is there anyway to reconfigure a replica set in the event the primary as well as a majority of the servers ...
0
votes
0answers
33 views

Books on mongodb data migration

Thanks for reading this post. I have no db/dba background and just started evaluating mongodb for our project. Could someone share experiences of migration data in mongodb? for example, today's ...
2
votes
1answer
69 views

errno 98 but no other mongod running

Here are my config options: options: { config: "/etc/mongod.conf" , net: { bindIp: "127.0.0.1, 10.0.2.57" } , processManagement: { fork: true, pidFilePath: "/var/run/mongodb/mongod.pid" } , storage: ...
0
votes
0answers
16 views

How to prohibit MongoDB primary node become secondery? [duplicate]

My MongoDB Replica set using only two nodes, and when forced to kill off secondery node, the primary node will automatically become secondery. How to prohibit primary node become secondery ?
1
vote
1answer
36 views

MongoDB: how to create a new database

After installation, test,admin and local are the default database. As per the MongoDB tutorial, when we insert data in collection a database will be listed in show dbs command. For a specific purpose, ...
1
vote
0answers
57 views

Replica failed with error mongo db

I am running mongo sharded cluster with two replica set as shards. One set is working fine but replica secondary on other replica set is not working. When ever i restart it it gives me this error and ...
0
votes
1answer
32 views

Sharded DB accidentally created during update of MongoDB from 2.4.4 to 2.6.4

I am upgrading mongo version 2.4 to 2.6 I was able to upgrade my complete cluster except one primary member of my replica set during this period my auto running script created a sharded db. I can not ...
0
votes
1answer
86 views

Use index intersection feature in mongo 2.6 to compound shard key

I am having three indexes like name,age,salary. I can use them as compound index as per 2.6 (name and age together). But can i use the same indexes as compound shard key like name and age. i also have ...
1
vote
1answer
149 views

MongoDB performance problem

I have a MongoDB for storing result like this {_id, type, imei, lat, lng, spd, dir, time} {_id, type, imei, lac, cid, time} If type is f first one is used and if it is l second one is used. Here ...
1
vote
2answers
51 views

How to determine database read/write ratio on MongoDB MMS?

By looking at MongoDB MMS charts, is there a way to calculate a database read/write ratio, or roughly determine whether a database is read-heavy or write-heavy? Assume I do not have contact with ...
0
votes
0answers
78 views

Mongodb x509 certificate for client and cluster member

I am newbie to mongodb, i understood the concepts and architecture in mongodb document. I would like to setup (1) mongodb server and cluster members (2) x509 SSL security for the server, client ...
1
vote
0answers
33 views

Mongo stuck on save

We have a single node of Mongo holding data in a single collection. We run it on windows 2008 64-bit machine with 128 GB RAM. The size of the collection is ~2TB holding ~200M items. Lately, when we ...
0
votes
1answer
159 views

Mongo import error: exception:read error, or input line too long (max length: 16777216)

I have a shareded collection which I'm trying to migrate from an existing production Cluster running v 2.4 to a new one running 2.6. As both clusters are shareded, I'm using mongoexport from the old ...
1
vote
1answer
68 views

Delayed replication false alerts and migration delays

I am running mongo 2.6.1 on a 3-shard cluster. Configuration is: 3 data nodes and 2 arbiters. The one data node is hidden and delayed for 3 hours (slavedelay). I have hidden the node in order to ...
0
votes
0answers
31 views

Mongo Sort By Added Fields

I'm using MiniMongo which means I won't be able to use aggregations. I'm wondering if there's a way to do this without. I'm basically trying to sort rows by two values, foo and bar. Both are ints, ...
0
votes
1answer
56 views

MongoDB Server has authorization schema version 3, but found a schema version 1 user

Trying to restore a production MongoDB onto a dev MongoDB and getting this error assertion: 17408 Server has authorization schema version 3, but found a schema version 1 user: { _id: ...
0
votes
2answers
141 views

1 million strings and exact match search

I need to chose the best solution (software and algorithm) to solve my problem. I need to store up to million strings and data associated with them. Strings are search queries and data is cached ...
1
vote
1answer
93 views

Understanding document size in MongoDB

My collection.stats(): { "ns" : "csdbprotobuf.archive", "count" : 429787895, "size" : 48374032272, "avgObjSize" : 112, "storageSize" : 56527326864, "numExtents" : 47, ...
0
votes
0answers
45 views

MongoDB thinks it's running a replica?

I'm running MongoDB (version 2.4) behind a Django application served by Apache. In the past few days, I'm seeing the following error come up many times an hour in the Apache logs, on all sorts of ...
0
votes
1answer
69 views

users and roles in mongodb

Following users are created in mongodb. First user created with name "user" having read write role for "project" database use project db.createUser( { user: "user", pwd: "user123", ...
0
votes
0answers
106 views

Exception in 'hibernate.ogm.datastore.database'

I am trying mongodb with hibernate-ogm i am completely new for hibernate-ogm i have stucked with following exception. I am using hibernate-ogm 4.1 6beta version and mongodb-ogm-hibernate.4.1 jar. ...
0
votes
0answers
71 views

where did my mongo databses go?

I have various Mongo databases and when I do ls -l in my CentOS linux I can see the databaseA.0 and databaseA.ns files for each database and the file size is large enough to tell my data is still ...
1
vote
1answer
91 views

PHP/MongoDB: Unset all fields in a document

I want to use PHP to remove documents from a MongoDB collection, but it's a capped collection (and it's stuck that way until I can get more memory), which means I can't remove documents. I have to do ...
0
votes
1answer
34 views

Tracing the origin of noTimeout cursors

I'm currently managing a Mongo DB instance that has several applications using it. It's been accumulating noTimeout cursors, and, while it's easy enough to cull them if they start getting ...
2
votes
1answer
82 views

mongodb: maxTimeMS ignored

After trying with different drivers and clients, we suffer with mongodb timeout on find query. Even Profiling logs the settings and issue well. 2014-08-13T23:46:43.218+0200 [conn80] query ...
0
votes
1answer
14 views

MongoDB Booleans

In MongoDB, I could store a boolean like so: active: True But that doesn't really take advantage of NoSQL, since there's no reason to have the active property at all if it's false. Is there a way ...
0
votes
1answer
624 views

How to limit the connections per host in MongoDB?

I'm running a mongo server which accepts connections from other clients through java driver. The thing I have noticed is after a while some users open too many ports, and this prevents other users to ...
0
votes
1answer
17 views

Disc IO for query in MongoDB

is there a way to tell how much data MongoDB is reading from disc and how much from cache for a query ? I looked at the explain()-Function but did not find this kind of informations. Thanks, Andre
0
votes
1answer
43 views

What is the easiest way to start a mongodb copy server?

Our mongodb server is running on AWS EC2 - it is using up a lot of the cpus of this server - which is also our Apache server - How Can I easily migrate the mongodb to another EC2 dedicated server?
0
votes
0answers
18 views

Documents with many potentially overlapping geolocations (maybe MongoDB)

Let's say I have a large list of coordinates coupled with the type of building is at this location (e.g., restaurant, doctor's office). In this scenario, there would potentially be many different ...
1
vote
2answers
107 views

How do I explicitly define data types for a MongoDB collection?

How do I explicitly define data types for a MongoDB collection? I understand that in Mongo if a collection doesn't exist it will create it when you insert the document, but I know the fields and data ...
1
vote
1answer
165 views

How we can take backup oplog on every hour and apply on top on full backup for mongodb

We have full lvm snapshot backup. We are trying to take oplog backup in every hour and save as a file. We like to apply the oplog backup on top of full backup if we need to. We like to know how we can ...
1
vote
1answer
72 views

Should all machines which run mongo instances (mongod or mongos) in a Mongo DB cluster have unique hostnames (also at OS level)?

I have been using Mongo DB Cluster for some data analysis (Mongo DB version 2.4.5) and while inserting some data into the cluster, I found an error which is the same as mentioned in the bug : ...
0
votes
1answer
63 views

Updating mongo sharded cluster without down time for mongod

I am trying to update my mongo sharded version from 2.4 to 2.6.3. I have some queries on steps to update this. When I will run one mongos with the --upgrade option, will it update all the config ...
1
vote
0answers
103 views

Positional Operator Matching Nested Arrays Workaround?

As was just pointed out to me on stackoverflow, Positional Operator Matching Nested Arrays has yet to be made available.. I need to display read.marked:true replies differently than read.marked:false ...
1
vote
0answers
58 views

MongoDB read performance

I have an ingestion process which loads data into a specific collection at a very high rate. Some of these documents have to be loaded into another system in batches of 100K . Means as soon as I find ...
1
vote
1answer
40 views

What folders should I check to see if these MongoDB applications are installed on my server?

I have a CentOS (Linux) server and looked at the /bin directory, but don't find the applications listed below. What folders should I check to see if these applications are installed on my server? I'm ...
1
vote
0answers
50 views

How to check which sql statement is causing global lock

We are monitoring mongodb Database using MMS and it is showing 15-20 sec global lock. But we can't find any statement is taking more than 2-3 sec. I like to know which is causing so much global lock ...
0
votes
0answers
26 views

Why does a mongo connector need 5% of server memory?

I have 2 servers, one running MongoDB, and the other running a Clojure app. The Clojure app makes some calls to MongoDB. If I ssh to the server running Clojure and run htop, I see: 28961 das ...