All versions of MongoDB - a scalable, high-performance, open source, document-oriented database.

learn more… | top users | synonyms

0
votes
1answer
24 views

MongoDB temporary node / mirror

When I have a running MongoDB instance with some data and requests against it, can I start a second instance on another machine, register it as another node in the first instance and all the data is ...
1
vote
0answers
87 views

Understanding MongoDB Log warning

In my MongoDB log, I am seeing these lines of messages: 2016-04-05T00:03:42.904+0000 I COMMAND [ftdc] serverStatus was very slow: { after basic: 200, after asserts: 240, after backgroundFlushing: ...
1
vote
0answers
40 views

Running a query in Mongo Shell vs PyMongo (in Flask) results in extreme slowdown

When prototyping a query I've been using just the Mongo Shell to make sure my aggregation query is working fine: # Default query query = [{ # Supposedly forces MongoDB to initially use ...
1
vote
0answers
93 views

MongoDB with multi core instance

I have a "large" EC2 instance with 2 cores running MongoDB as part of a Replicaset. Does MongoDB use both cores in parallel by default or do I need to make some configuration change?
1
vote
0answers
34 views

Mongo indexes question

I have the following aggregation query: db.getCollection('usersongs').aggregate([ {$match: { room: 'someObjId', status: { $in: [ "ended", "skipped" ] } } }, {$group: { ...
0
votes
0answers
38 views

Replica set with SSL issues

I was able to set up a replica set with self signed certificates on Windows. However, I suspect there are some communication issues between primary and secondary. When I look at the log, I see ...
2
votes
5answers
189 views

Lots of Indexes - MySQL vs MongoDB - Migrating

So, I've never used MongoDB, I just read a lot about it and I think it's going to be good for my project. Also, I do not have lots of experience with MySQL and to be even more honest I have no clue of ...
0
votes
1answer
32 views

see currently running background indexing jobs (MongoDB)

In mongodb.log I see 2016-03-31T12:44:11.003+0200 I - [conn58191] Index Build (background): 14396400/17648149 81% 2016-03-31T12:44:14.018+0200 I - [conn58191] Index Build (...
0
votes
2answers
57 views

Mongo ReplicaSet - arbiter in connection string

I'm using ReplicaSet with Mongo and when i build the connection string i have all servers hosts and ports - comma delimited. My question is, shall i add the arbiter address there as well or just the ...
0
votes
1answer
78 views

Mongo 2.6 vs. 3.2 - data folder size

I just migrated from Mongo 2.6 (Single node) to 3.2 (ReplicaSet). In the old server the Mongo's data folder was a total of ~12GB, but looks like in the new servers (master and its slave) it's just ~2....
3
votes
2answers
79 views

How can we ensure security and integrity of data stored in MongoDB?

Since MongoDB lacks support of transactions how one can ensure consistency of data stored in MongoDB database?
0
votes
1answer
13 views

Chunk error when upgraded to mongodb 2.6 while uploading doc

I was trying to upgrade mongodb 2.2 to 2.6 and upon testing 2.6 received chunk out of order error.. I recieve an unexpected error from the server: exception: chunks out of order at /home/ps203k/....
0
votes
1answer
32 views

Can't stop MongoDB process on CentOS

My OS is CentOS release 6.4 (Final) and my MongoDB version is 2.4.1. I tried: use admin; db.shutdownServer() and I got in output: assert failed : unexpected error: "shutdownServer failed: ...
1
vote
0answers
18 views

MongoDB Fails to get TGT

I've setup MongoDB enterprise on CentOS 7 with Kerberos support. Additionally I've setup a Kerberos service on CentOS 7 for the authentication. I know that Kerberos is setup correctly as I now have ...
1
vote
0answers
43 views

Would it be good practice to represent MongoDB ObjectId as a String or a Blob type in SQL Lite (RDMS world)?

All: We have a software application with 1) Web-based component 2) Mobile-based component Our 1) Web-based component uses a) MongoDB as the Database b) ASP.NET C# Our 2) Mobile-based component ...
0
votes
0answers
50 views

How to migrate AWS dynamodb to mongodb

I am new to NoSQL databases. I am having a database in AWS RDS DynamoDB. I need to migrate this to MongoDB. Can any one help me with the steps to convert database from DynamoDB to MongoDB.
0
votes
0answers
33 views

Can we check the timestamp of last mongo dump command?

We have a central database hosted on AWS. And many developers keep dumping the database from time to time. Is there any method for to get a time stamp when the last mongo dump command was executed? ...
0
votes
0answers
26 views

MongoDB: Splitting empty collection with hashed sharding key

I'm currently trying to pre-split an empty collection. According the documentation (found here: https://docs.mongodb.org/manual/reference/command/split/): As such, the command cannot use the find ...
0
votes
0answers
19 views

Scaling MongoDB netwrok peformance

I have two question which are rally about the same thing - how to read more documents per second? I'm running a MongoDB cluster on Amazon EC2 and I'm load testing it from 10 servers (on Amazon EMR). ...
0
votes
0answers
22 views

MongoDB job on CentOS 7 has file permission errors

I have a CentOS 7 server and I've been trying to start using MongoDB. At some point, I changed group & file permissions for the following: /var/lib/mongo /var/run/mongodb /var/log/mongodb What ...
0
votes
0answers
19 views

MongoDB Lookup Issue

In collection A, we have "batches" : [ ObjectId("56fccffbe7c9f9cf7634dbfe") ], and in Collection B, we have { "_id" : ObjectId("56fccffbe7c9f9cf7634dbfe") Can we perform a ...
1
vote
1answer
229 views

Server warnings on MongoDB startup

I recently installed MongoDB on an AWS EC2 instance running Ubuntu. When I'm starting the MongoDB service, I get some warnings: $ mongo MongoDB shell version: 3.0.11 connecting to: test Server has ...
1
vote
1answer
161 views

How to efficiently design MongoDB database for Uber-like application?

I'm designing a MongoDB database for an Uber-like application, but since I'm new to NoSQL concept, I have several doubts. I have three main collections - users, requests and messages. User can post a ...
0
votes
0answers
52 views

MongoDB daily document growth rate

Is MongoDB feasibly suited to handle 90,000,000 documents per day? Version 3.2. I did some rough estimates on my data size. There will be about 90,000,000 recorded events per day, each a maximum size ...
0
votes
0answers
12 views

MongoDB server machine “actively refusing connections”, though previously accepted with no issues?

I am using MongoDB as a storage solution for my C# application. I noticed this issue today when starting up my application and trying to connect to Mongo, the exception was something like "target ...
0
votes
0answers
35 views

MongoDB replication seems to be abnormal

I have a three-member replica set with 1 primary and 2 secondaries: A - Primary B - Secondary C - Secondary Initially I had only one Member A and all CRUD operations were performed on it only. ...
0
votes
1answer
41 views

How to use --excludeCollectionsWithPrefix in mongodump

I would like know how to use the option "--excludeCollectionsWithPrefix" of the mongodump ? I have some collections name with numbers like this: registry.logging_event_15313531 registry....
1
vote
2answers
16 views

How to predict new disk allocation?

I understand that MongoDB pre-allocates disk space, but the disk allocation I'm seeing is growing much faster than I'm anticipating. For example, I had a database using up 8GB of actual disk space. ...
0
votes
1answer
44 views

How can I set maxIdleTimeMS by command line or mongo-shell?

So, I have deployed my PHP application (using Laravel). However , I've noticed a high connection number in connection pool. I would like to know how could I to set the maxIdleTimeMS parameter through ...
1
vote
1answer
79 views

Isn't contradictory that MongoDB may lose updates with journaling in WiredTiger?

This is what MongoDB says about journaling: To provide durability in the event of a failure, MongoDB uses write ahead logging to on-disk journal files. But with WiredTiger: Important ...
0
votes
0answers
162 views

mongod.exe has stopped working

I have installed mongoDB 3.2.4 and I am on windows 7 64-bit system. After installation of mongoDB , i have specified dbpath as c:\data and also set the environment variable. Now whenever I am trying ...
0
votes
0answers
10 views

MongoDB COnnection Issue

In mongo log we see a lot of connections from primary server to itslef(Where 10.67.91.214 is the Primary Server's IP).Here user user has readWrite access on datbasedb 2016-03-23T12:33:32.349+0530 I ...
1
vote
0answers
43 views

MongoDB:Too many connections from Secondary

We have a 3 node replica set running on MongoDB 3.2, and having an issue with Replication. On Primary server, connection count will keep increasing as one of the secondary will keep making new ...
0
votes
1answer
12 views

Understanding MongoDB's contra-indications for read preferences

I'm very new to MongoDB and am reading the manual to familiarize myself with it. Would appreciate some help in understanding some points related to read preferences. In general, do not use ...
0
votes
1answer
53 views

Lots of isMaster queries running

I see a lot of these kind of queries running on my primary server where all the replica set members keep checking if the Primary is Primary by running isMaster: query: { ismaster: true } ntoreturn: ...
0
votes
1answer
41 views

Mongosniff Error : unknown opcode

*** CANNOT HANDLE TYPE: 2010 10.117.241.104:27017 <<-- 10.117.241.104:51907 hosts 465 bytes id:14429c 1327772 unknown opcode 2011
0
votes
0answers
28 views

Cant connect to Replica set from secondary

When I try to connect to connect to my replica set from secondary, I get No primary detected for set prod error while I am able to connect from my primary server. Any idea?
3
votes
0answers
72 views

Read replica setting giving error “No candidate servers found”

I am running my website with Laravel 5 + MongoDB. I am using mongo cluster to speed up data read and write, and to lower CPU usage of the mongo server. I have set up the replica like this: 10.0.1....
0
votes
1answer
50 views

MongoDB document found on replica set but not in mongos

I have a sharded cluster: two shards - each a replica set with 3 nodes, and a config replica set (with 3 nodes). I sharded my cluster by two collections in the same database: - players.user_id - it'...
0
votes
0answers
29 views

Create replcaSet for the configServers in MongoDB

i'am trying to deploy sharding and replcaSet in mongoDB on the localhost this is what i did for now : i created the replicaSet : start mongod --replSet pr --logpath \data\rs1\1.log --dbpath \data\...
1
vote
0answers
58 views

I can't see some databases with even though my user has the “root” role

I installed MongoDB 3.2 and I enabled authentication: security: authorization: enabled I created an admin user with the following command in the terminal: mongo admin --eval 'db.createUser({user:...
0
votes
0answers
22 views

Rebalancing fast with mongodb

I am implementing a sharding with MongoDB and have recently added another node, but the rebalancing of data is very slow. Servers have 64 Mac OS with RAM. I need help on how I can run the mongod ...
1
vote
2answers
596 views

How to run Mongodb as a non root user in Linux?

I can start MongoDB as $sudo service mongod start. When I start without sudo it gives me this error: /etc/init.d/mongod: line 58: ulimit: open files: cannot modify limit: Operation not permitted /etc/...
0
votes
0answers
51 views

How to restart mongos after it was shutdown in localhost?

I have configured sharding and replicaSet in localhost and it worked normally. But when I shutdown the servers I could not reconnect to them. Is there any way to restart the servers without ...
1
vote
0answers
32 views

efficient way to store immutable numeric data

I'm trying to put a bunch of worldwide climate data into some kind of database structure so I can quickly access a collation of all 10 datasets simultaneously with fast indexing and hopefully ...
3
votes
0answers
56 views

AS/400 + DB2 to MongoDB?

I'm not seeing a whole lot of info on the subject, so I figured I'd ask people who might know more about it than I do: Is it possible to replicate data from an AS/400 + IBM DB2 instance to MongoDB? If ...
1
vote
1answer
77 views

Why mongodb requires arbiter in a 4 members replica set?

sorry for my trivial question, I read the mongodb documentation but still I do not understand well. The documentation says that the majority of the members should be considered at the start up ...
1
vote
1answer
81 views

Designing a database for “not seen” queries

I'm building a large collection of items from which I want to query items that a specific user has not seen before. I will need to track, per user, which items s/he has seen. Currently the items are ...
0
votes
0answers
57 views

MongoDB slow aggregation for 30 millions of documents

I have MongoDB cluster that include 3 Shard servers based on m3.large type, config server and mongos. There I have a database on 30G with one shard collection with 30 millions of documents. Each ...
0
votes
1answer
77 views

Preferred database solution for storing sensor data

As a hobby project I am developing a system which stores data from different kind of sensors around the house. Currently it is implemented using ASP.Net MVC 6 and MongoDB for the database. (I choose ...