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

learn more… | top users | synonyms

0
votes
1answer
96 views

MongoDB won't start with access control turned on

Hello I would appreciate any suggestions, I have a 3 member MongoDB replica set setup on CentOS I'm trying to configure wit access control: node1, node2, arbiter, When I do not configure security ...
0
votes
0answers
34 views

MongoDB sharded Replica cluster AWS

I am currently evaluating where to run a sharded&replica MongoDB cluster right now I am looking into: self hosted, or either self made on AWS with a bunch of EC2 instances AWS cloudformation ...
0
votes
0answers
30 views

MongoDB ram used keep increasing until 55% then mongod blow up

I'm setting up MongoDB as follow db:test, collection:datapoints. I indexed 3 tags which is _Id, DeviceID and TagID. My test PHP code insert data to mongodb as follow: $dbhost = 'localhost'; $dbname ...
0
votes
1answer
95 views

ReplicaSet MongoDB

I'am trying to create replcaSet in MongoDB and I'am facing a problem. This is what I did step by step: 1- I entered this command to create these repertories: mkdir \data\rs1 \data\rs2 \data\rs3 ...
0
votes
0answers
32 views

How to add an index to attributes sorted on in mongodb

Before you find another reason for changing the category of this question, it was on Stack Overflow and it was described as a DB Admin question, so here goes: I am running a reporting app with ...
0
votes
1answer
24 views

Mysql to Mongodb data migration application for use in production environment [closed]

I have a mysql database that receives data every 10 seconds and its a lot of data i receive.I am looking for an application that can transfer my database from mysql to mongodb. I am looking for a ...
0
votes
2answers
19 views

MongoDB shard keeps growing, I don't know why?

I've had a project dumped on me and I'm trying to get up to speed withMongo. But I have an immediate firefight, in that one shard in my Mongo cluster just keeps growing and growing, adding more ...
0
votes
0answers
33 views

What is the syntax of mongodump and mongorestore?

I have a problem in my exercise: Export the db atelier. For that, use the command ./mongodump -d atelier My answwer : $ mongodump -d atelier Import the contenu of the db atelier in the db atelier2. ...
1
vote
0answers
16 views

ConfigServersInconsistent:How to correct the inconsistency?

Detected that the one of the config servers is inconsistent with rest two, in a 3 config-server environment. But not sure how to set this right. I have gone through mongodb config servers not in sync ...
0
votes
1answer
21 views

Does a hidden member count toward and operate as part of a write_concern majority in MongoDB 2.6?

Does a hidden member count toward and operate as part of a write_concern majority in MongoDB 2.6? It states here that for the w option, prior to Mongo 3.0, "majority" refers to the majority of ...
1
vote
1answer
18 views

Limits of testing HA with a single server replica set?

I'm teaching myself MongoDB HA, going through various replica set scenarios, setting up priorities, arbiters, hidden replica sets, etc. Currently I'm using multiple mongod's on a single Windows ...
4
votes
1answer
97 views

Are operators also considered to be keys?

I'm taking a MongoDB course and one of the assignments asks to include quotes around keys. So I did for a query like this {$push: {"key":value}} But I was told that $push is also a key because it's ...
0
votes
1answer
110 views

Dump first N documents of a collection with mongodump

I am very new to MongoDB and I would like to know how to dump the first N elements of a collection with mongodump. I can't figure out the query I have to use. And how would you dump the last N ...
2
votes
3answers
43 views

MongoDB multi update consistency

I have a collection similar to the below, of say 5,000,000 records. { "_id" : ObjectId("56d18f95d2961d1ddcb7244f"), "rec_id" : 0, "status" : "open", "updated by" : "A" } User B is trying ...
1
vote
1answer
39 views

lat, long based search with $near shutdown my mongodb on Linux server

Hey guys i am stuck on critical problem & unable to resolve it. I have a project where there is a collection of UK postcodes having 18,00,000 sample postcode records. I have a search query where i ...
0
votes
1answer
30 views

Array or Object?

I am using MongoDB and designing a database. There is a list of itemCode. It won't change, but some new one will be added at some point. The total number of itemCode will never be over 100. Each ...
1
vote
1answer
28 views

Replicaset with MongoDB: Two datacenters, one primary and the other secondary

The tutorial I found on MongoDB's website suggest installing an odd number of servers. For what it's worth, we're not sharding so it should be a simple setup. For even numbers I would need an arbiter. ...
1
vote
1answer
106 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
42 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
34 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
100 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
103 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
47 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
56 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
31 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
27 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
58 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
43 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
27 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
22 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
18 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
56 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
18 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
69 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
45 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
26 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
28 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 ...
5
votes
0answers
216 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
48 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
72 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
24 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
24 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
75 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
21 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 ...