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

learn more… | top users | synonyms

1
vote
1answer
87 views

MongoDB allocates chunks only to Primary when sharding is enabled

I'm setting up an instance of MongoDB with 3 shards. I've setup everything seemingly correctly by following the docs and comparing my config with that of a friend who has a similar setup but with a ...
1
vote
2answers
38 views

PostgreSQL JSONB: How to get an element from Array of Embedded Documents

I am comparing MongoDB with PostgreSQL query abilities. I struggle a bit with finding simple equivalent for the following MongoDB queries. What are the equivalent commands in PostgreSQL JSONB to ...
0
votes
0answers
7 views

How to log newly instantiated member status changes in a replica set

I'm trying to benchmark when a new mongo replica member first communicates to my replica set. change state from STARTUP2 -> RECOVERY change state from RECOVERING -> SECONDARY I'm specifically ...
0
votes
0answers
27 views

How i Implement Role Based Access Control in Mongodb

Currently I'm working on an ERP project. I want to set the Roles & Permissions via a RESTful Api. I'm using Mongodb and Nodejs. How can i implement this? Roles & Permissions are as follows:- ...
1
vote
2answers
63 views

Can MongoDB be configured to sit behind a load balancer?

According to this post: In a single replica set, you cannot distribute writes, they all must go to the primary. You can distribute reads to the secondaries already, via Read Preferences as you ...
-1
votes
1answer
75 views

mongodb not working after install

I followed these steps at http://www.liquidweb.com/kb/how-to-install-mongodb-on-ubuntu-14-04/ as I usually do, since everyone on ubuntu knows the mongo docs don't work. I'm actually on kubuntu 15 I ...
1
vote
1answer
38 views

what is correct way of adding a user in admin with role userAdminAnyDatabase doing upgrade to 2.6

I am running a mongodb 2.4 with auth enabled and want to upgrade to 2.6 Instructions in upgrade 2.6 says: Before beginning the upgrade process for a deployment that uses authentication and ...
1
vote
2answers
56 views

Where to store administrative (DBA) data?

I am a SQL Server DBA by trade, investigating MongoDB for a project. One of the conventions we use is to store configuration-style information in a SQLDBA database on each server (index rebuild ...
1
vote
1answer
46 views

MongoDB with Sharding has slow performance

I have the following setup for my MongoDB Sharded Cluster (everything is running on the same machine on localhost, just different port numbers): ConfigServers : 1 ReplicaSet consisting of 3 mongod ...
0
votes
0answers
22 views

Mongodb findandmodify authorization

I have a MongoDB user created into admin database When i try to use some functions (from mongoDB native driver in nodeJs) it throws an error: { name: 'MongoError', message: 'not authorized on ...
0
votes
1answer
24 views

How many replica set members consitute majority in MongoDB?

MongoDB 3.2 manual is not very clear as to what constitutes a majority with regards to write concerns in a replica set e.g. w="majority". It is somewhat subjective. In a replica set of 10 members ...
2
votes
2answers
26 views

Deploying a Replica Set

I am new to MongoDB. I am trying to create a Replica Set for testing and development. It shows me the message in the picture! I followed the steps shown in the official documentation: Deploy a ...
1
vote
0answers
52 views

Adding a Mongo Shard decreases the insert performance

For a mobile application which will hold quite some documents, we've chosen Mongo as a database. Let me explain the situation first: Every day, I have a set of documents that needs to be inserted, ...
0
votes
0answers
39 views

mongodb server crashed on login with admin users

On OpenSuse, I encountered the following problem Here is the output of the user creation, which i created before. For confirmation i again create the same user, mongod confirmed that user exist with ...
0
votes
0answers
25 views

How to query MongoDB sharding and replica set configuration from remote machine

I have to query to get MongoDB cluster configuration from remote machine through programming code. I can get these details from Mongo shell using sh.status() and rs.status() command. I am looking ...
0
votes
0answers
29 views

MongoDB - user account control

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 the following: In a ...
1
vote
0answers
17 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
21 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 ...
0
votes
1answer
17 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
46 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
17 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
56 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
35 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
25 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
26 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
158 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
41 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
44 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
68 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
23 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
23 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
71 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
20 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
37 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
23 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
46 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
58 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 ...
0
votes
0answers
25 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
32 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
62 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
46 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
38 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
60 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
46 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
52 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
101 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
33 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
44 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 ...
0
votes
0answers
84 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
71 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 ...