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

learn more… | top users | synonyms

0
votes
0answers
6 views

MongoDB - user account control

0 down vote favorite unfortunately, I have to support MongoDB in a production environment. for many reasons, MongoDB seems like way too far from reality and normal working environments. My issue is ...
1
vote
0answers
5 views

Syncing writes and not deletes - mongoDB

Is it possible to have a secondary instance of mongoDB which syncs all the write operations to the database and not the delete operation? I'm looking for this solution so that I have a backup even if ...
0
votes
1answer
7 views

mongodb running single instance with --auth flag enabled is it means mongob running autorization enabled?

I am actually upgrading 2.2.0 single instance of MongoDB to 3.2 current version. My MongoDB single instance running with --auth flag enabled so while upgrading from 2.4 to 2.6, do I need to consider ...
-3
votes
0answers
4 views

upon upgrading mongodb, shell version new but db version still showing old one

I am trying to test upgrading mongodb from 2.2.0 to 3.2. So first I am upgrading it to 2.2.1 then 2.4 and so on. Upon upgrading from 2.2.0 to 2.2.1, on running the shell version it shows 2.2.1 but ...
0
votes
1answer
9 views

MongoDB Configuration File Locations

Some databases search/check multiple locations for configuarion files, if it finds many, it merges and does a priority if same options defined. Does mongodb search multiple locations for ...
0
votes
0answers
23 views

on-premise MongoDB Ops Manager Slack integration

The feature request "Alerts: SlackChat integration for Group Alerts" is resolved. I use Ops Manager 2.0.1.332 (not Cloud Manager) and don't see the Slack integration. Slack is a cloud-based team ...
0
votes
0answers
16 views

MongoDB aggregate() error in server

I have two queries, the first one shows 'not master and slaveOk=false' error and second one works fine in the server. We have two MongoDB replica sets.Can anybody explain why the queries behave so? ...
0
votes
0answers
13 views

MongoDB too many db.eval cause my DB can't read write

I am using C# Web API with mongocsharpdriver 1.9.2 and MongoDB 2.6.9 In my case I need performance that have to use db.eval to execute JavaScript on the server side. But I got a problem that too ...
1
vote
0answers
11 views

How to Shard a Mongodb Collection based on String and Date Time Shard Key using Range Based Sharding

I am new to Mongodb,I have to Shard a Collection Based on Integer, String and Date time shard key, I am able to shard a collection using integer shard key. below is the command,I am using for Range ...
0
votes
1answer
21 views

Database for live mobile tracking [closed]

I'm developing an app that allows to track a mobile device instantly (live) ... I need an of advice. The application must send the location to a webservice that in it's turn records the received ...
0
votes
0answers
22 views

Can mongodb disable in-memory? force fully-in-disk

up vote 0 down vote favorite I'm using mongodb to store massive data, but memory limit to 2G. So I want to mongodb fully-in-disk (the best way is set some collection fully-in-disk) Is there a way to ...
2
votes
0answers
102 views

Sudden Mongodb high connections/queues, db stops responding

The issue We have a strange issue on our mongodb setup. Sometimes we get peaks of high connections and high queues and the mongodb process stops responding if we let the queues and connections ...
2
votes
1answer
27 views

MongoDB GridFS Offsite Backups

We are using MongoDB GridFS to create a document archive. I am creating a sharded cluster at our Primary DataCenter. I need a working backup at our offsite Disaster Recovery DataCenter. This will ...
0
votes
1answer
29 views

Scrapy data analyzed with R, mongoDB or other pipeline? [closed]

I'm scraping data using the Scrapy library in python and i'm planning to make few analysis in the future using R. In the future it could be a very big database with millions of items, what are the ...
2
votes
1answer
49 views

How unique are MongoDB _id fields?

I am trying to create a schema for documents and collections for a MongoDB database I am creating. I have read a few documents describing the _id field that is generated by each document upon ...
2
votes
1answer
17 views

Single Slave with Multiple Masters. Does this pattern exist in MongoDB?

Can we have a single mongoDB remotely (online) which can act as a slave to multiple master mongoDBs (which operate offline)? For example, I have huge number of transactions which I like to perform on ...
1
vote
0answers
16 views

Security: direct remote access vs webinterface

I need to remotely connect to my (mongoDB) database and I currently allow direct access to the DB server port with user/pw login. I often read that this is generally a bad idea and that one should ...
1
vote
0answers
52 views

MongoDB replicaSet keep 'syncing to' and only can be connect with shell

Hi I am new with MongoDB 2.6 Replica Set I have three DB service in Docker and DB work in Replica Set It works great I can connect to DB Read,Write in C#,MongoVUE but I didn't know why my db will ...
1
vote
0answers
14 views

MongoDB replCallbackWithGlobalLock-0. What does it mean?

I have a production replica set with 3 members (primary, secondary, arbiter). Almost every day, there's a short downtime where the primary is demoted to secondary for no apparent reason. The replica ...
2
votes
1answer
36 views

Backup on both secondaries or a dedicated backup secondary

In my current replica set setup, I have a a primary and 2 secondaries (both a normal secondaries - priority 1 on each, no delay, no hidden). Note that reads and writes are only against the primary. ...
0
votes
2answers
16 views

how to set mogodb in upstart service with authentication in mongodb way

I set username and password in MongoDB every time I have to run this command in terminal: sudo mongod --auth --port 27017 --dbpath /var/lib/mongodb As soon as I close terminal, MongoDB db also ...
0
votes
1answer
22 views

Move data from 4 shard, replicated mongodb cluster to a single server without downtime

I need to move sharded data from four replica sets to a single remote machine without downtime. Can you describe the process step by step?
4
votes
1answer
57 views

Should images be separated from posts in MongoDb?

I am working on a project with Meteor.js and I am using CollectionFS with GridFS to easily store images in MongoDb. Now I am not the best with databases and database design, but I heard that in nosql ...
-1
votes
0answers
44 views

insert performance of Mysql InnoDB vs Mongodb

I often heared that Mongodb has a better performance than mysql while mysql has more consistence than Mongodb. Then I did a experiment using the following python code based on MySQL-python and ...
0
votes
0answers
21 views

Index figures don't decline (even after compaction)

The scenario described bellow encountered both on 3.0.5 (on Amazon Linux) and 3.0.3 (Windows) machine using wiredTiger as a storage engine. I've inserted million documents to a collection with two ...
0
votes
1answer
13 views

Adding more space + bandwidth to a MongoDB cluster

I've read a lot about sharding and have gone through cluster setup process as well. What I can't get my head around is the actual database capacity after its sharded. So say for instance I have one ...
1
vote
0answers
38 views

mongodump monitoring (with exit codes)

This is how we monitor backups with mongodump. Exit code and mail if not 0. Mailing is reliable in our environment. mongodump -h $RANDOM_SECONDARY -u $BACKUP_USER -p $BACKUP_PASSWD --out ...
3
votes
1answer
40 views

How do I know that I am connected to a config server

I need a simple check for identifying that I am connected to a MongoDB config server. I can check the process to differentiate between mongod and mongos: > db.serverStatus().process; mongod Now ...
3
votes
1answer
28 views

Is it dangerous to expose MongoDB's db.collection.find to users?

I know in SQL land people love referring to Little Bobby Tables as the main reason to have a very strict interface between your user base and your database. However, I want to implement a robust ...
0
votes
2answers
54 views

Document Store & Relational DB Hybrid. Exists? Possible?

Does anyone know of any product or open source project that attempts to strap together Mongo DB and MySQL for instance? I hear a lot about how relational DBs being ACID compliant makes it nearly ...
0
votes
0answers
22 views

In which order does a mongodump --query executes

In which order does a mongodump --query executes, is from last insert to first insert or the other way around, if it is other way around is there any option that I can pass to mongodump --query, so ...
0
votes
1answer
16 views

Do mongodb's 2dsphere index works on multidimensional coordinantes array?

if i create a index like that : db.createCollection("users") db.users.ensureIndex({coordinates:"2dsphere"}); and then insert a point var point = { type: "point", coordinates: [ 1, 2, 3, 4 ] ...
3
votes
1answer
51 views

Mongodb incremental oplog Dump not working

I am not able to take an incremental oplog dump. I am not getting any error messages the connection happens fine and also there is a operation recorded(shows up in db.currentOp()), but still nothing ...
0
votes
0answers
19 views

Deploy Existing MongoDB Replica Set with MongoDB Ops Manager

I'm trying to use Ops Manager to automate my current deployment. I installed all of the automation agents on every server, and then tried to deploy with Ops Manager. Ops manager detects all the ...
0
votes
2answers
28 views

Process to reclaim free space from mongodb ,replication is there

We are facing space pressure on production server so we are planning to reclaim space from prod instance.replication is there ,can anyone help me to know complete process in sequence to reclaim ...
1
vote
0answers
38 views

How come MongoDB WiredTiger snappy & zlip compression consumes same memory

To specify compression for specific collections, you’ll need to override the defaults by passing the appropriate options in the db.createCollection() command. For example, to create a collection ...
0
votes
0answers
45 views

MongoDB. Data transfer error

Today I find a lot of following entries in mongos log 2016-01-04T09:08:16.086-0500 [Balancer] distributed lock 'balancer/lab-dl380-11:27117:1449663167:1804289383' acquired, ts : ...
2
votes
1answer
47 views

How to convert _id field of all existing documents from type String to Number

At one of my collections I have an _id field that stores numbers. The field was defined originally in the Mongoose model as String. However, all the data concerning this field in the collection ...
0
votes
2answers
48 views

How is it possible to convert a 3-node replica set to a 1-node replica set during low-usage hours

We have a chat application that runs on MongoDB. For the amount of users that we currently have, it is sufficient to have a 2 node+Arbiter set up during peak hours. However, during off-peak hours, we ...
0
votes
0answers
30 views

Why copydb command privilege not enough?

When copydb, mongo 2.6 gave the following error messages: mongos> use admin; switched to db admin mongos> db.runCommand({copydb:1, fromdb: ...
3
votes
1answer
30 views

Mongodb. Convert field to bool

I'm trying to change field type to bool among all documents in collection. Here is the code db.product.find().forEach(function(doc) { if (doc.checked === "Y") { doc.checked = true; } else if ...
0
votes
0answers
12 views

Manage clone of Production MongoDB on UAT env

I have mongodb (v2.4.9) replication setup on AWS ec2. I have one primary and 2 secondary for Production environment. The db size is around 80 GB and i am maintaining a snapshot of primary db server ...
0
votes
1answer
21 views

Shutting down mongod while mongodump is running

Can we shutdown mongod instance while the mongodump is running? Does mongodump operate by itself or it is a client for a mongod server?
0
votes
0answers
42 views

Backing up mongo database of about 120 GB size

We have a mongo database of about 120 GB size. I have run mongodump using nohup and redirecting the logs to /dev/null about 3 days back, but the dump file is ~40GB in size now, and the dump is still ...
0
votes
0answers
32 views

Cannot start mongod on rhel7

Servers crashes right after start From log: 2015-12-21T11:11:41.494-0500 SEVERE: Failed global initialization: UnknownError Could not add sasl auxprop plugin MongoDBInternalAuxprop: version mismatch ...
3
votes
2answers
40 views

MongoDB just utilizing one CPU core

Would anyone happen to know why Mongo is just using one core instead of distributing traffic on all? I am using the PyMongo driver and MongoDB is running on a centos server.
3
votes
1answer
34 views

Force a Member to Become Primary when Primary fails in mobgodb

I have mongodb 2.6.11 cluster of two members: nms02 and nms01m. I know how to force secondary to become primary when primary is avail. But now my primary nms02 failed..and nms01m is secondary...How I ...
3
votes
1answer
38 views

How to make most of aws?

I'm new to aws (just one day old). I'm impressed with aws free tier and want to utilize to its best. As of now I'm done with installing mongodb on aws micro instances and mongod EC2 instances are ...
6
votes
2answers
47 views

Force a Member to Become Primary in mongodb

I looked into answers but nothing works for me in mongo 2.6.11 cluster 'nms' (members nms01m and nms02) below. I want my current secondary nms01m to become primary, and now nms02 is primary instead of ...
2
votes
1answer
30 views

How to design mongodb collection? [closed]

We have a service will collect data and call api to save to a mongodb's collection name alldata And the problem is ,it keeps write data frequently,then the mongo will shutdown (I found on ...