MongoDB is a document oriented database (also known as NoSQL database).

learn more… | top users | synonyms (1)

1
vote
1answer
16 views

OpenShift MongoDB ECONNREFUSED

When attempting to connect to the mongodb-2.4 cartridge i keep getting the following ==> app-root/logs/nodejs.log <== Error: connect ECONNREFUSED 127.0.0.1:27017 at ...
0
votes
1answer
31 views

How to find which db/collection/query triggers disk read?

We're running a MongoDB 3.0 server with multiple users accessing it and we're experiencing very frequent disk reads by mongod process utilizing our SSD drives to 100% During these peaks the page ...
1
vote
1answer
21 views

Is there any simple way to see which mongodb indexes are being used?

We've accumulated a large number of indexes on one of our mongodb collections, and it would be good to remove some of these if possible. However, it's quite difficult to know which indexes are in ...
0
votes
1answer
28 views

is it safe to create a snapshot of a volume of a running ec2 instance

I'm running a MongoDB Cluster on 3 Instances on AWS Each instance has 2 EBS attached to it - / [8GB] - /data [50GB] To backup a cluster MongoDB recommends to create a snapshot of the /data driver ...
0
votes
1answer
13 views

mongodb folder size is very big

I installed a mongodb on a Debian Jessie. After some inserts (<100) I checked the size of the folder /var/lib/mongodb/ and the content of the folder is 3.3 GB high. Is this normal? The hard disk ...
2
votes
1answer
75 views

Install MongoDB extension on a specific PHP version

I have a Debian web server on which I installed Apache/Mysql/PHP5 around ISPConfig 3. I manually installed an additionnal PHP version (PHP 7.0.5) in order to have one website on PHP 5, and one website ...
0
votes
0answers
15 views

Unable to add a mongod server in local network as shard

I'm trying to build a small cluster using mongodb sharding. In node1 and node2, mongod is started. In node1, config server and mongos are started. All listening 0.0.0.0 with exclusively allocated ...
0
votes
0answers
87 views

MongoDB high page faults every 15 minutes, delayed readers

We have a relatively small MongoDB production replicaset. We do about 100 operations per second -- balanced reads and writes. Every 15 minutes or so we see a spike in response time on reads, and in ...
0
votes
0answers
12 views

How to create a pem certificate for a mongo server that is accessed from different domains

I have a mongo server on aws. The server has both internal and external addresses. I enabled ssl on the server and create a CA and a mongo server certificate and a client side certificate. ...
2
votes
1answer
1k views

Enabling WiredTiger engine in MongoDB 3

I've problem with enabling WiredTiger engine by setings in mongod.conf I'm using Centos 7, and this is my config #/etc/mongod.conf storage: wiredTiger: engineConfig: ...
0
votes
1answer
19 views

Create a new user for MongoDB inside Docker

I'm using the default MongoDB Docker image and I'm trying to create a new user for the database. I'm currently trying to do it this way: FROM docker.io/mongo:3.2 MAINTAINER <alexandernst> ...
1
vote
1answer
1k views

Can't setup 3 nodes MongoDB recplica set

I just follow instructions in MongoDB document Replica Sets - Basics to setup a 3-node Replica set. Everything goes fine when I do the initiate and add first node in the primary. [foo@host-a ...
2
votes
1answer
5k views

High CPU usage on mongodb server when idle?

I am getting strange usage numbers on MongoDB server when it is in almost idle state: http://pastebin.com/cKVyGMts (no queries) DB size is about 3.3 Gb I can see in mongodb.log that snapshotthread is ...
0
votes
1answer
20 views

Mongodb sharded cluster architecture

I have a mongodb cluster on aws. In order to reduce network latency I want to have multiple shards in different regions. In each region there will be the application nodes that connect to the ...
5
votes
4answers
3k views

MongoDB and ZFS bad performance: disk always busy with reads while doing only writes

I have huge performance issues using MongoDB (i believe it is mmapped DB) with ZFSonlinux. Our Mongodb is almost only writes. On replicas without ZFS, disk is completely busy for ~5s spikes, when app ...
1
vote
1answer
26 views

How to preform a core dump on MongoDB

I am in the process of investigating a potential memory leak within MongoDB, last night I experienced an issue where the resident memory in use, had an unexpect climb to +10GB. I am trying to preform ...
1
vote
0answers
80 views

“MongoError write EPIPE” in Parse-Server Installation

I'm helping a friend with migrating a Parse app to a dedicated server as opposed to a hosting provider, and I've gotten stuck trying to resolve an error that I THINK is happening in the Parse Server ...
0
votes
0answers
15 views

MongoDB or mongoclient not closing connections

I'm having an issue with our mongodb server having too many connections open. We have tracked down the problem to be related to the incoming connections from the vhost with the php server. sudo lsof ...
0
votes
0answers
39 views

No Reachable Server Error when migrate our parse app using mongodb URI

am using mongodb version 3.0.11 on ubuntu server, but when I migrate our existing parse app in aws for production, after installing mongodb on ubuntu server when click on migrate button after changing ...
0
votes
0answers
13 views

rsyslog capturing apacher logs in mongodb

I am trying to send my apache logs to mongodb via rsyslog My rsyslog.conf looks like this: module(load="imuxsock") module(load="imklog") module(load="imfile") module(load="ommongodb") ...
3
votes
2answers
1k views

How can I exclude a package from yum-cron but not from manual “yum upgrade”?

I've just gone through my servers and installed yum-cron (and then enabled with chkconfig yum-cron on since that doesn't seem to happen automatically). Now I realise that I'm running a MongoDB ...
0
votes
1answer
174 views

SELinux setup for MongoDB

I'm trying to install MongoDB on CentOS 7.2 from the mongodb.org repository. So far so good, but the hoster has created a secondary disk (/mongo) for all the MongoDB data files. This clashes with the ...
0
votes
0answers
3 views

Seamless migrate MongoDB instance to another server,

Currently, my MongoDB server is running at EC2 instance. Due to the budget issue I have to migrate it to another VPS provider. However, the data in the MongoDB instance is changing all the time. ...
1
vote
0answers
28 views

How can I set up mongodb to scale it quickly on AWS

I want to deploy a database using mongodb on AWS, and I think this database will receive a lot of data making necessary to think on the possibility that one server is not enough, so my questions is: ...
0
votes
1answer
232 views

Mongodb + Kerberos BadValue SASL mechanism GSSAPI is not supported

I am trying to run an instance of mongodb with the authentication mechanism GSS-API. This is the command: mongod --dbpath /home/ec2-user/db/node2/data --auth --setParameter ...
0
votes
1answer
112 views

How to allocate more resources to Node.JS process?

I'm not a (very good) back-end developer so understanding processes and memory are a little about my pay grade. I'm currently building an app using the MEAN stack. I have a separate Express server ...
0
votes
0answers
13 views

changing MongoDB process user on Ubuntu

I'm writing an installation/configuration script for MongoDB. I want to change the user account under which mongod will run. Looking at /etc/init/mongod.conf I see this line: ...
4
votes
2answers
7k views

Why after deleting a 110+ GB collection, my /var/lib/mongodb directory still have same size?

I am having some troubles with MongoDB and space usage. In particular, I once used to have a large collection of about 600 million records totaling 110+ GB on disk. Recently I decided to drop it ...
1
vote
2answers
2k views

Rename Mongo Shard

Can I, and if I can, how can I rename a shard in Mongo? Like if I wanted to change the instances of rs0 to rep0 below: mongos> sh.status() --- Sharding Status --- sharding version: { "_id" ...
0
votes
0answers
12 views

error while creating replication sets in mongodb

I have 3 servers with mongodb instances and running in replset mode. I followed this article for deploying MongoDB on Azure and this MongoDB article about replica sets. When i try to add secondary ...
5
votes
3answers
14k views

How to reset MongoDB replica set settings

I want to start over the configurations of replica, is it possible? How to reset it? In group people saying to remove the database content, but are there any work around?
3
votes
2answers
2k views

I need nodejs and mongodb to handle 5000 requests per second

As the title suggested, I need nodejs and mongodb to handle 5000 requests per second. Right off the bat that is. We'll grow to many times that eventually. My initial thoughts are to put each on ...
1
vote
0answers
23 views

Proper way to set limit in mongodb on log files

It more beginner question. I trying to set limit on mongo log file in AWS linux instance. I found some question that was asked here. And tryed to do that as was suggest from someone for mongo 3.0. ...
-1
votes
1answer
68 views

Sending many record on client startup. Nginx 502 bad gateway too many open files

I have nodejs app that sending > 800 mongodb documents on client startup (execute only when a client access my app for the first time). Nginx as reverse proxy in front of node server. App server ...
0
votes
0answers
40 views

MongoDB setup for Rocket.Chat error message

I'm following this tutorial for a Rocket.Chat setup on an Ubuntu 14.04 LTS installation. After installation of Mongod, it says to setup a replica set and gives the instructions to insert the following ...
3
votes
3answers
456 views

MongoDB WiredTiger storage not using two CPU cores

As claimed in WiredTiger storage engine description, it provides an ability of better concurrency due to document-level locking. From this post: WiredTiger scales on modern, multi-CPU ...
1
vote
2answers
661 views

Cannot connect to MongoDB in docker

Using the official mongo image from the docker hub, I run the following command to get it running: docker run --name api -p 127.0.0.1:27017:27017 -p 127.0.0.1:28017:28017 -d mongo Then from another ...
0
votes
1answer
43 views

mongodb - authentication failure on phpmongodb with username

I have a problem to authenticating to mongodb. The system is ubuntu 14.04 LTS. I can connect locally: $ mongo mytestdb -u mongotest -p MYPASSWORD MongoDB shell version: 3.2.3 connecting to: mytestdb ...
2
votes
1answer
84 views

MongoDB sharding: mongos and config servers together?

We want to create a MongoDB shard (v. 2.4). The official documentation recommends to have 3 config servers. However, the policies of our company won't allow us to get 3 extra servers for this ...
0
votes
0answers
57 views

Mongodb, we can't go over 100 insert/sec on 200iops HDD

Thanks in advance for your help, we get a strange behaviour in mongodb. So we have a cluster of 20 shards, each composed of 1 master and 2 slaves. This database has a heavy load of write only. However ...
9
votes
1answer
18k views

how to connect to mongodb server via ssh tunnel

It was easy for me to connect to my remote mysql server on AWS using a sequelpro, however I'm struggling with doing the same thing with mongodb. I tried setting up an ssh tunnel via command line ...
3
votes
0answers
236 views

Using haproxy in tcp mode to proxy mongo server causes mongo clients to fail about 25% of the time

I am trying to use haproxy in tcp mode in front of a mongo server. On the haproxy machine I have a mongo client to test with. When connecting from the haproxy machine directly to the mongo server ...
3
votes
4answers
4k views

How to set ulimits for mongod?

How do I set ulimits for the mongod process/user on CentOS? I've read the official documentation but it doesn't provide OS-specific instructions. I need to set ulimit -u 64000 and need this to ...
0
votes
0answers
22 views

MONGO - mongod - no connection to database [duplicate]

i have an testserver running under ubuntu 14.04 with public ip address. On this i have plesk 12.5 and mongodb 3.2. For administration of mongo i installed phpmongodb. Then created an database, an ...
0
votes
1answer
32 views

Taring mongodump database produce different checksum

(I am french so sorry for bad english) I am trying to backup my mongo database and check for changes with a sha1 checksum. The problem is that the checksum is not the same. $ mongodump --quiet --db ...
6
votes
4answers
13k views

How to make a secure MongoDB server?

I'm wanting my website to use MongoDB as it's datastore. I've used MongoDB in my development environment with no worries, but I'm worried about security with a public server. My server is a VPS ...
0
votes
0answers
21 views

Mongodb sharding with differently specc'd hardware questions

I'm interested in implementing a sharding setup as cheaply as I can manage for an application that doesn't have much stored at the moment but could grow in future. I wonder what difference it would ...
4
votes
1answer
996 views

How to display MongoDB stats in Graphite?

After googling for 2 days with no solution I would like to know if anyone uses Graphite with either CollectD or StatsD to include MongoDB statistics in a dashboard. I was hoping for an up-to-date ...
0
votes
1answer
136 views

Unusually large number of httpd processes and high CPU load on MongoDB replica set members

I am investigating a strange behavior on 3 CentOS machines serving as a MongoDB replica set, whereas one of them is also hosting a PHP web app utilizing the MongoDB replica set. The basic setup is as ...
0
votes
1answer
25 views

chef common recipe multiple roles

i have created a mongodb chef recipe, and i am overriding the default attributes on the recipe from the role. name 'mongo_datanode_jackey' description 'this module is currently under testing...' ...