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

MongoDB failover process

Hello guys I've been all over the MongoDB documentation (http://docs.mongodb.org) and I can't find a solution to my problem. Imagine the following scenario: I have 2 Nodes (1000Km apart). Both nodes ...
0
votes
0answers
79 views

Mongo client cannot connect on first try in bash script

I'm working on a bash script for automatic MongoDB server installation and user creation. #!/bin/bash apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb ...
0
votes
1answer
31 views

Is it correct to use IP addresses (instead of hostnames) while configuring Mongo DB cluster? Does it cause any issues?

I have been using Mongo DB Cluster for some data analysis (Mongo DB version 2.4.5). My configuration is as follows: 1) Node1 - mongoconfig server, mongod shard 2) Node2 - mongoconfig server, mongod ...
1
vote
1answer
98 views

Socket recv() timeout on secondary nodes

We started using MongoDB pretty recently. We are on version 2.6.3. We have a replica set of 4 nodes (1 Primary + 3 Secondary) We are currently seeing some latency in replication. The Secondary nodes ...
5
votes
2answers
40 views

Mongodb - see when a database was dropped

I want to know if there is a way to see when a database was dropped. Is there an entry in a log file or some other way to see when this occurred
2
votes
2answers
50 views

MongoDB replica sets and data duplication

I am new to MongoDB and trying to understand replica sets. Specifically, I am trying to understand how MongoDB would handle the following situation: A record is written to a table with a unique ...
0
votes
0answers
72 views

Linked Server in SSMS 2014 - Shared Memory Provider, error: 0 - The pipe has been ended

I'm trying to connect to Mongo database from Microsoft SQL Server Management Studio through Linked Servers using Mongo ODBC Driver. Right now I'm testing Easysoft ODBC Driver. I can connect to the ...
0
votes
0answers
88 views

Mongo replica-set authentication error opening file: keyfile Permission denied

The mongo service fails to load when using a keyfile. I've been getting a "Permission denied" error. All permissions are granted to every user, and I've tried moving the file around to different ...
0
votes
1answer
30 views

Mongo DB Replica set Stuck at RECOVERING state

We have created a replica set and now the problem is 2 members of replica set [3 members set] are in recovering mode from 48 hours. Initially the size of recovering nodes was increasing and now even ...
0
votes
2answers
22 views

MongoDB: how to get the all the embedded data?

I have this data: > db.Category.find().pretty() { "_id" : ObjectId("542450a928db034349fb3bf2"), "name" : "A category", "products" : [ { "_id" : ...
1
vote
1answer
119 views

Searching for array elements nested in MongoDB Documents

I need to store card documents in my database. Cards need to be stored with a set of integers that represent the bundle, box and pallet, or whatever other entity they belong to. The packaging ...
0
votes
1answer
32 views

Mongodb deployment best practice for dual nodes?

I have two nodes and I'd like to deploy mongodb on them. It seems there're two methods: Deploy as master-slave. But it's marked in the official document as "legacy". Deploy as a replica set. But a ...
0
votes
0answers
84 views

Robomongo - users with read permission able to read-write-delete

I am new to MongoDB, was trying to create multiple users in MongoDB, and restrict DB access to specific users. On Robomongo: I have created 2 users under "mydb" database with read permissions. When ...
0
votes
1answer
42 views

Storing not very volatile information in database with cache or mongodb

For a new project I'm working on right now I was doubting on which database/storage system to use for specific information which does not change that often. We have for instance some ...
1
vote
0answers
71 views

How can I load csv data into mongodb and choose the types I'd like to have created for each column?

I'm looking for a way to load csv data in mongodb and specify the types that I'd like to have created for each column? I've been using mongoimport but I find it quite painful because there doesn't ...
1
vote
1answer
38 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
82 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
45 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
13 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
34 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
103 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
23 views

MongoDB Configuration [closed]

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
32 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
46 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
26 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
50 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
481 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
154 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
116 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
59 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
38 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
76 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
100 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
73 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
32 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
40 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
33 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
49 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
74 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
115 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
49 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
69 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
29 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
134 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
67 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
29 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
49 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
128 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 ...