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

3
votes
0answers
11 views

Remove a shard in MongoDB

I have a MongoDB cluster, I accidentally hosed a shard, I don't have a backup. It's pretty easy to recover the data, but after issuing the removeShard command, it says it's draining. However, the ...
0
votes
1answer
34 views

MongoDB service not working after upgrade to Ubuntu 15.04

I have recently upgraded my Ubuntu from 14.10 to 15.04. All features seems to be working fine except MongoDB. It is not controllable from service as we do normally in Ubuntu. sudo service mongodb ...
0
votes
0answers
20 views

User with more than enough permission, cannot query collection

I'm in mongo shell. I'm authenticated as a user with way beyond enough permission to simply query a collection. Yet I cannot. Here is the user permissions... What am I doing wrong and/or missing? ...
0
votes
1answer
23 views

MongoDb replica set: How do I verify data replication on other servers?

I have a 3 member replica set running. It's geo-located on 3 separate VPSs. On primary I can do rs.status() and see it's working. I can't execute any mongo shell commands on the secondaries. How do I ...
1
vote
1answer
17 views

Can we have two primaries for the same shard in mongodb?

Can we have a Mongodb deployment in two data centers in which the data set is divided into two shards A and B. Data Center 1 | Data Center 2 Shard A, Shard B | ...
2
votes
0answers
27 views

Who can explain mongodb with ssl?

I created certificates according to the instructions on the official website of MongoDB, but it doesn't work properly. I have a replica set and self-signed certificates. I need a full encryption ...
0
votes
1answer
18 views

What is the difference between hadoop, mongoDB, Big data? [closed]

What is the difference between Hadoop, MongoDB, Big data ?
0
votes
2answers
36 views

export data from SQl to text file/MongoDB

I have some data in multiple tables (ACTTAB, APTTAB, ...) How do I export this data from SQL and insert into a text file? How can I import this data into MongoDB?
0
votes
0answers
16 views

Mongodb replica set across AWS regions or subnets or data centers

I seem to have run into a blocking problem. I want a certain collection to be replicated across multiple AWS regions/subnets/data centers (eg a global lookup table or a global user credentials table) ...
0
votes
0answers
16 views

Mongo primary is showing behind the primary?

Mongo primary is showing behind the primary ?? Its increasing as time passes . Please suggest ? monRepl:PRIMARY> rs.printSlaveReplicationInfo() source: xxxxxx:27017 syncedTo: Mon Apr 27 2015 ...
0
votes
1answer
53 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
23 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
25 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
16 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
29 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
1answer
19 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
16 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
13 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
1answer
20 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
25 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
4 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
57 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
26 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
41 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
28 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
45 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
57 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
19 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
25 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
71 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
13 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. ...
0
votes
0answers
64 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
95 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
15 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
152 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
55 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
61 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
40 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
109 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
41 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
11 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
22 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
32 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
155 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
15 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
32 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
2answers
35 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
60 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() ...