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
0answers
2 views

Why sharding does not show any improvement?

Here is what I did to test sharding performance. I have 4 servers, I ran config server and router on a server. 3 others are meant to be shards. First, I only added one shard to router, then I ran a ...
0
votes
0answers
9 views

Mongo Shard with Negative Average Size?

I'm seeing the following behavior from a shard in mongo: mongos> db.fs.chunks.getShardDistribution() Shard SH0 data : 740.29GiB docs : 5003098 chunks : 32949 estimated data per chunk : 23MiB ...
1
vote
0answers
12 views

Creating Pandas DataFrame on Python From a MongoDB Document containing Embedded documents

I am working on a machine learning algorithm on python's scikit.learn, but this time the data are in Mongodb documents format. I would like to pull my data into a dataframe. Here is an exemple of the ...
0
votes
0answers
14 views

Mongodb: How to resolve startup2 state

I have a shard cluster. Each shard consists of a replication set with one Primary node and an arbiter node. There is a large number of data in each shard. The host of a Primary of a shard crashed ...
0
votes
1answer
23 views

How can I create a mongo db based on mysql squema?

How can I create a mongo db based on mysql squema? this is my schema productCode VARCHAR(15) productName VARCHAR(70) productLine VARCHAR(50) productScale VARCHAR(10) productVendor VARCHAR(50) ...
0
votes
0answers
15 views

MongoDB “overacts” on cleaning/flushing and finally hangs up

Recently I run several times into trouble with mongodb that exhausted my system. The database is tiny, after a mongodump, all files together weight 248KB. After some hours uptime it happens that the ...
0
votes
0answers
40 views

Opinion on Database Design for Task [closed]

Would like to know if this is a good database design. Once you see the picture it is pretty much self explanatory. But anyways I will keep it brief. Basically users signup to create a bet, users ...
0
votes
0answers
15 views

How to interpret Mongo MMS Stats?

The following image contains all of the charts from the Status tab in MMS. How does a noob looking at these charts navigate these waters, so to speak? The mongo box is a standalone installation ...
0
votes
0answers
8 views

Setting up MongoDB MMS on Sharded Cluster

I have followed these instructions to create a Sharded Cluster of MongoDB nodes. https://sebastianvoss.com/docker-mongodb-sharded-cluster.html I now want to setup MongoDB-MMS to monitor these 6 ...
0
votes
0answers
13 views

Expand a date range in mongodb

I have a document structure like { "startDate": ISODate("2015-01-01T00:00:00Z"), "endDate" : ISODate("2015-01-10T00:00:00Z"), "foo" : "bar" } Is it possible to expand the date range like ...
0
votes
0answers
15 views

Mongoose populate() and shard key

Our MongoDb setup has a number of sharded collections. When we use mongoose api populate(), it invokes a find() internally. For example: emailDAO.findOne(selector).populate({path: ...
0
votes
0answers
3 views

Service Busy Alarms on USSD GW due to MongoDB

We are getting service busy alarms on my machines which are using MongoDB. When the service busy alarm appears, we get the following errors on our Mongo router logs. The OS on these machines is ...
1
vote
2answers
54 views

How MongoDB allocate new data block when data block is full

I am using MongoDB in my project. And I have some questions about how Mongo storage allocated. For example, I have 16MB full data block, and I want to add new document into this data block. - How ...
0
votes
1answer
23 views

MongoDB : How to estimate max number of connections supported?

We have a sharded cluster with 2 replica sets. Each replica set is a 3 member cluster with one primary and 2 secondaries. Each instance is a r3.large (aws-ec2) instance with 15G ram. mongos's are in ...
1
vote
1answer
26 views

MongoDB document size for collection - impact on RAM and query performance

I have been advised on stackoverflow to ask this question on dba.stackexchange instead - We are using MongoDB version 3.0 with WiredTiger storage. As newbies to MongoDB, we may have designed our ...
0
votes
1answer
24 views

Query MongoDB collection and find rows from 7 days ago

I have a MongoDB collection called messages and this is an example document for that collection: { "_id": { "$oid": "551943eee4c6acf40fe5a0f2" }, "sender_id": { "$oid": ...
0
votes
1answer
44 views

Size of data in secondary exceeded primary after its initial resync from primary in MongoDB

I step down the primary node, deleted its data and performed the initial resync from new primary. But when i checked the size of data after the completion of initial resync, I found that the size of ...
1
vote
1answer
44 views

check storage engine from shell

I'm upgrading to 3.0 and ran into some issues with the upgrade. Specifically, I got an error when trying to start up mongod via ssh, it tried to use the default dbpath instead of the one i specified ...
1
vote
0answers
18 views

Replica Set In Mongo Are All Primary

So I saw a thread on here for when all the replica sets are Primary. The fix was to do rs.Add(hostportStr) on the master server before you do rs.initiate() on the server you want to become a ...
0
votes
1answer
23 views

mongodb wont read config file using upstart

The problem started where mongo wouldn't start because of low disk space. So I enabled the small files directive in the config file. Now it starts if I run: /usr/bin/mongod --config /etc/mongod.conf ...
1
vote
2answers
53 views

Mongos version 3.0.1 Split Chunk Error with Sharding

I have 3 config server and two shards. Each shard has a primary, secondary and an arbiter. This is running with the following mongod settings: storageEngine=wiredTiger ...
0
votes
0answers
10 views

how to set the permissions for the mongodb packages to run mongo cluster and keep *least privilege principle*?

I followed the instructions of mongodb doc to install the mongodb package on my ubuntu. As a result, the owner of all files in mongodb package is root, and the group is root. I have some questions. ...
-2
votes
0answers
21 views

Simple Mongo DB replication

I need to get things done, quick and fast and now. Later on, down the road, say in a month or less, or more, I will want to have my database replicated in few more machines. I wonder, if I can ...
0
votes
0answers
54 views

Mongodb 3.0.1 in ubuntu starts but status, stop or restart show 'mongo stop/waiting'

I am relatively new to Mongo and have installed 3.0.1 on a Digital Ocean droplet (Ubuntu 14.04 LTS). The database starts without problems but I am unable to 'sudo service mongod [stop/restart/status]' ...
1
vote
1answer
68 views

MongoDB installation Ubuntu 12.04 LTS errors

I need some help with my MongoDB installation on a clean, fresh Ubuntu 12.04 LTS server with no nonsense installed. I thought it would be a piece of cake, but I got some errors and the Ubuntu-forums ...
0
votes
1answer
14 views

Setting up replication for various mongodb micro instances

We currently have 5 mongodb micro instances on aws, each of them serve different modules and the calls are made through REST services. We are planning to setup replication for these instances and my ...
2
votes
1answer
115 views

'mongod wiredTiger' on Ubuntu?

I cannot use wiredTiger as a service for MongoDB. Then, I progresses step by step according to the following guide; http://docs.mongodb.org/manual/release-notes/3.0-upgrade/ Step-1: Start 3.0 ...
0
votes
1answer
54 views

Is a mySQL or mongoDB relational database scalable for holding 80 GBs of additional logs per day? [closed]

I am currently deciding on a long term architecture solution for storing DNS logs. The amount of data we are talking about numbers some 80 GBs of logs per day at the peak. Currently I am looking at ...
1
vote
1answer
55 views

Shoud I uninstall mongodb 2.6 before upgrade to 3.0?

I installed mongodb 2.6 in my machine. This week, I followed the instructions in the subsection of Install MongoDB on http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. I installed ...
0
votes
1answer
34 views

In mongodb, drop collections, but still in db.stats() ? In db.stats(), fileSize is greater, greater than storageSize

I used db.coll.drop() to drop two collections in my MongoDB database. There are only system.indexes in my database now. But the output of db.stats() is: mongos> db.stats() { "raw" : { ...
0
votes
1answer
97 views

Genghis admin ui not working with mongodb 3.0.1 wired tiger [closed]

We recently updated to mongodb 3.0.1 using the wired tiger storage engine, and have been using the genghis php admin ui through the browser. However, genghis is not completely working now, ...
1
vote
2answers
38 views

ElasticSearch: is this problem suitable for ElasticSearch DB? [closed]

I have some hardware instruments each one recording a signal and generating sequences of timestamp/value pairs. Timestamp is a basic UTC posix time and value is a double. I'd like to record such ...
0
votes
0answers
9 views

Mongo db replication issue in 3.0.0

I updated my replica set from Mongo 32.6.4 to 3.0.0. After that i saw frequent switch between primary and secondary server. When i check the log i found this in log [ReplicationExecutor] replset: ...
1
vote
0answers
21 views

Issue running MongoDb 3.0

Was original running MongoDb 2.4 on Ubuntu 13.10. Upgraded MongoDb to 2.6. Upgraded Ubuntu to 14.04. Upgraded MongoDb to 3.0. However everytime I issue "mongod --config /etc/mongodb.conf", I am ...
0
votes
1answer
30 views

MongoDB production security and backup [closed]

I'm quite new to MongoDB and now I was trying to understand the best practices to secure a DB in production and how to automatically backup it. At the moment for security issues I just changed auth ...
0
votes
0answers
26 views

Get disk usage information of mongodb database

I have a database built in MongoDB and I need to obtain information related to the disk usage of the database through PHP. I have searched a lot but did not find relevant search results for retrieving ...
0
votes
1answer
93 views

MongoDB 3.0 : Configure storage engine at collection or database level

I know we can configure the storage engine to be wiredTiger at instance level when we start mongod. But can we also select the storage engine to be different for different collection or database?
0
votes
1answer
14 views

How to Import mongodb database from development Environment to local env by using Commmand?

I have lots of collections in my development server. I need to use the same data for testing scenarios. I am trying to import all the data of development environment to local by command is it ...
0
votes
1answer
23 views

what is the downtime of mongodb cluster when upgrade to 3.0

I am following http://docs.mongodb.org/manual/release-notes/3.0-upgrade/ to upgrade mongodb cluster from 2.6 to 3.0. The downtime is less than 1 second? because it takes less than 1 sec to elect one ...
0
votes
1answer
30 views

how to check and list all the files related to mongodb in ubuntu? I am looking for config files, password informations for mongodb [closed]

I installed the mongodb package in ubuntu using apt following the instructions on http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. I know that binaries are in /usr/bin/, and so on. ...
0
votes
1answer
26 views

In mongodb, is “sh.getBalancerState() is false” the same as “sh.isBanlancerRunning is false”?

During upgrading config servers to use WiredTIger, I stopped balancer using sh.setBalancerState(false), and then I run sh.getBalancerState(). The output is false. Does this mean the balancer is not ...
1
vote
1answer
44 views

What's the difference between Object.bsonsize and avgObjSize returned by db.collection.stats?

In my collection, my documents seem to be relatively similar. I need to know how much storage I'll need in my production server to store my documents, that's why I queried : db.collectionName.stats() ...
0
votes
2answers
50 views

MongoDb Upgrade from 2.6 to 3.0 Issue [closed]

For some reasons I cannot install MongoDb 3.0 version. What am I missing?
0
votes
0answers
74 views

MongoDB does'nt starts after changing the data directory

I have installed a mongodb instance using yum..Now everything works fine.I started the service using service mongod start,it works good.Then i changed the data directory and log path in the ...
0
votes
0answers
75 views

Mongodb PLAIN authentication failed

I am trying to configure a mongodb server to authenticate an user of a Directory Active. I know that the communication between the SO and the DA is fine because the testsaslauthd works: testsaslauthd ...
0
votes
0answers
17 views

Trouble starting Service mongodb-mms-backup-daemon

I am trying to install on-prim MMS and backup server. I am able to start the MongoMMS but not the Backup daemon. Below is the error copied from /opt/mongodb/mms-backup-daemon/logs/daemon.log ...
0
votes
0answers
32 views

what is the password to user mongodb when mongodb is installed in ubuntu?

When I installed mongodb in ubuntu, user mongodb and group mongodb are created in /etc/passwd and /etc/group. But I have no idea of the password to these user and group. I have to run mongod as root ...
0
votes
1answer
22 views

While installing Mongodb, getting “enabling http interface” message and stopped

I am getting following error while installing mongodb, $ mongod --directoryperdb --dbpath C:/mongodb/data/db --logpath c:/mongodb/log/ >mongodb.log --logappend --rest 2015-03-17T17:32:55.359+0530 ...
2
votes
1answer
167 views

When upgrading config servers to use WireTiger, the running config server with wiredtiger does not authenticate the existing pass and user?

In order to upgrade mongodb to 3.0.0, I am upgrading my config servers to use WireTiger. I followed the subsection of Change Config Server to Use WiredTiger. There are 18 steps. I run mongodump --port ...
0
votes
1answer
43 views

Why do I have to run mongod as root?

When I run "/usr/bin/mongod --config /var/data/rs1/rs1db0v3.conf". It failes. The error is: warning: bind_ip of 0.0.0.0 is unnecessary; listens on all ips by default about to fork child process, ...