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

learn more… | top users | synonyms

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
32 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
44 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
38 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
23 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
65 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
34 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
25 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
48 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
395 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
47 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
29 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
47 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
55 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
79 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
39 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
63 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 ...
0
votes
0answers
26 views

How to synchronize data between MongoDB and OpenLDAP databses

I have two data bases for one system. One is OpenLDAP and another one is MongoDB. To be specific this OpenLDAP is used by Atlassian Crowd that is used by us. I need to synchronize users in these two ...
0
votes
1answer
19 views

How do I create a new mongo collection with custom indices from an existing mongo db? [closed]

I have a mongo database collection, that I want to modify. I would like to add new indices (text and geo) to the existing data, and remove unnecessary fields. What would be the best way to do this? ...
0
votes
1answer
121 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
40 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
31 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
122 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
44 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
23 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
48 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
19 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
28 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
20 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
98 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
153 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
51 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
44 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
33 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
30 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
156 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
51 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
48 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
154 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
134 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
63 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
59 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
95 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
39 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 ...
-1
votes
1answer
35 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
27 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 ...