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

What is the sequence to enable the authentication in mongodb cluster without stopping the service

Assume that the cluster is running with authentication disabled. There are one mongos instance, 3 config servers, and two replication sets. each replication set has 3 mongod instances. My order is ...
-1
votes
1answer
28 views

MongoDB denying API access, while console shell works

I am a MongoDB newbie, with a MongoDB instance running on a Ubuntu machine. If I login onto the machine's console and run mongo -u username -p password databasename I have permissions for the ...
0
votes
0answers
15 views

MongoDB Backup & purge [duplicate]

I'm exploring solutions for a basic dbadmin need : periodically backing up and purging data in MongoDB. Basically, I need a logrotate for mongodb. I have a backend program filling a collection. I ...
1
vote
1answer
27 views

MongoLab: Does hardware effect performance of a find() query [closed]

I asked a pervious question on StackOverflow about if document size affected the performance of fetching that document (the document is 3MB in size) ...
0
votes
0answers
20 views

cannot log in to mongo from command line - using MongoDB 3.0 and WiredTiger - I've followed all instructions

NOTE: I have tried not setting bind_ip and also setting it to 0.0.0.0 -- neither one fixed my issue. This is my mongod.conf file: systemLog: destination: file path: "/root/mongodb.log" ...
0
votes
1answer
11 views

How to force a delayed member to become primary in case of failure in mongodb

I have three member set [primary,secondary & arbiter] in my data center 1 [DC1]. Now i want a delayed member in data center 2 [DR]. In case DC 1 is completely down then my sub net application ...
0
votes
0answers
18 views

Restart failed mongodb replica set instance under docker

I am trying to simulate when the master mongod instance shuts down for some reason in mongo replica set. So I took I docker file from here: ...
1
vote
0answers
22 views

Docker Mongodb replication on different hosts is not working

I am trying to setup a mongodb replication in Docker containers running on different hosts. Please find the steps below: In a VM1 running ubuntu 14.04, installed docker, then created container C1. ...
0
votes
1answer
14 views

Running Aggregation logic on multiple shards of MongoDB

Suppose we have 5 shards in MongoDB having collection of data, and I have to write an Aggregation logic which should work on each of 5 shards in my cluster and collect data from these shards. Should ...
0
votes
1answer
12 views

MongoDB 3.0 - how do I check which storage engine is being used? [duplicate]

I have MongoDB 3.0.0 running on a Digital Ocean droplet. How can I tell which storage engine it is using?
0
votes
1answer
26 views

Understanding MongoDB Aggregation

Pretend that our collection has 1M document Now if i do aggregation like this: db.users.aggregate({ $group: { _id : "$gender", avgAge : { $avg : "$age" } } }) then how it ...
0
votes
0answers
34 views

Best way to run an ETL on a production MongoDB database

We have the following environment: 3 servers + 3 replica set servers Each server has 3 shards Our main collection has around 40,000,000 documents that average at around 6kb Our shard key is ...
3
votes
0answers
24 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
162 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
22 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
33 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
25 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
40 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
29 views

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

What is the difference between Hadoop, MongoDB, Big data ?
0
votes
2answers
48 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
29 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
1answer
20 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
57 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
38 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
47 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
32 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
24 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
22 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
22 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
23 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
34 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
8 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
64 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
29 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
54 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
37 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
47 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
110 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
30 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
131 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
22 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
96 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
158 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
16 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
215 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
60 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
80 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
49 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" : { ...