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
7 views

MongoDB - Replica sets - Syncing and DC issue

I have 3 instances of MongoDB running on my local machine. One is native and the other two are on a Virtualbox Windows 7 VM. LocalMongo = My local mongo. VM1a and VM1b = My two instances of mongo ...
1
vote
1answer
38 views

Update tag range on MongoDB range shard

Let say I set a min and max key for shards using range tags. Later I find out that the tag range I defined will not balance. Then I have to change the tag range value. I have searched MongoDB's ...
1
vote
0answers
16 views

Error while creating an admin user in replica set

I have a relatively simple replica set test setup between two VMs and my host machine, with VM1 as primary, VM2 as secondary and the host as arbiter. I have mongodb 2.6.4 installed on all machines. So ...
0
votes
0answers
6 views

different php files on same mongoDB connection in php

I am new to both PHP and mongoDB. I want to know if there is any way to run a PHP project having different files on a single mongoclient(); I have created one connection.php file which is used for ...
0
votes
1answer
26 views

Several mongod instances that do automatic failover without duplication of data?

Because we don't have much storage space and we already have a RAID system for data availability, we don't want to use mongodb's replication set with duplication of data. I just want to know if ...
0
votes
0answers
12 views

Slow insert with Mongo 2.6.4 update

Hi I am having an issue with mongo version 2.6.4 my insert queries has became extremely slow after update when i check log on primary i got this 2014-09-16T16:40:18.576+0530 [conn51476] insert ...
0
votes
1answer
15 views

MongoDB Configuration [on hold]

I am new to MongoDb, I have 1 TB of Data in JSON format, what should be the processor speed, RAM, disc space required, network bandwidth for maximum of 10 concurrent users for production environment.
0
votes
1answer
30 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
19 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
19 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
19 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
23 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
23 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
17 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
36 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
12 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
42 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
35 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, ...
0
votes
0answers
13 views

How to modify the chunk size in a MongoDB sharded cluster?

I'm trying to modify the chunk size of a MongoDB sharded cluster. The problem is that it doesn't look to take my change into account. It keeps on filling 64MBs chunks. I even deployed a new dev ...
1
vote
1answer
33 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
23 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
16 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
15 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
20 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
17 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
23 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
19 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
48 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
14 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
23 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 ...
0
votes
0answers
16 views

Scaling mongoDB & Node.js [on hold]

Having an app running on Google App Engine, where everything is done for you - I am thinking about moving to mongoDB & Node.js in a Docker system. Would you have one mongoDB instance - and ...
1
vote
0answers
21 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
39 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
60 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
15 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
30 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
1answer
57 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
53 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
28 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
0answers
20 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
24 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
12 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
24 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
22 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 ...
1
vote
1answer
21 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
12 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
62 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
14 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
24 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
13 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 ...