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

learn more… | top users | synonyms (1)

1
vote
1answer
77 views

How do I accept two different types of network connections using iptables

I need to setup iptables for a mongodb database server, such that it allows only two types of INPUT connections: one connection to port 27017, monogdb's default port, from our main web-app one ssh ...
1
vote
1answer
412 views

ec2-consistent-snapshot mongodb - mongod.lock file

I'm trying out ec2-consistent-snapshot with --mongo --freeze-filesystem options. The snapshot itself works great. However, after I restore the volume and try to use it with a new instance, when I ...
1
vote
2answers
662 views

Should I disable turn off MongoDB profiler in production machine?

The default according to [1] is collect profile data when execution time > 100ms But one of the issue is when majority of queries' execution time > 100ms, our system start to overload and I am not ...
1
vote
4answers
60 views

Mongo security users & ports

As long as my mongo port is not accessible to the outside world and only available locally, can I go about without securing my database with a username and password?
1
vote
2answers
64 views

How to control databases replicated by Mongo DB replica set

I have 2 databases in my mongo DB namespace, lets name them db1, db2 and db3 which are on the same dbpath. Is it possible to configure mongo db replica set in that way that db3 wont be replicated ...
1
vote
1answer
191 views

Mongos connecting to replica set

This is a pretty basic question but I can't find any answers on it. I know you use mongos to interface with a sharded collection. However, if I have a replica set which is not sharded how do I set up ...
1
vote
1answer
609 views

MongoDB Replica Set, initiate() need to login error

I am trying to setup a replica set, but when I issue: rs.initiate() On the first server, I get the following error: { "errmsg" : "need to login", "ok" : 0 } That is strange though, because in my ...
1
vote
1answer
426 views

How to install 64bit version of Mongodb

How can I install the 64bit (x86_64) version of MongoDB? I've specified in the 10gen.repo the 64bit: baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 But when I run: yum install ...
1
vote
1answer
335 views

Thread-Safe or Non-Thread-Safe PHP Extension for Windows? [closed]

I am wanting to install the MongoDB PHP extension for Windows for my Dev server to play around with it. Looking at the PHP manual ...
1
vote
1answer
2k views

mongodb replication: no primary elected

I have three servers with mongod installed on it running as a replication set. Suddenly the two secondories became unavailable (the mongod process died) - I think because they were too stale. The ...
1
vote
2answers
586 views

What is the standard system architecture for MongoDB

I know this question is too vague, so I would like to add some key numbers to give insights about what the scenario is Each Document size - 360KB Total Documents - 1.5 million Document created/day ...
1
vote
1answer
143 views

mongod: automatically initiate replica-set

Currently I manually execute the rs.initiate() in the shell after starting a mongo primary or secondary machine to join the replica-set "farm". Doesn't the /etc/mongodb.conf allow me to define the ...
1
vote
1answer
120 views

Mongodb in a single server then scaling

If I start with Mongodb on a single server, but foresee that I need to scale out, should I configure it in any specific way? I guess I am looking for tips from people who have gone down this route.
1
vote
2answers
2k views

Mongo has a huge log and sometimes hangs the box

My mongodb_mp.log is growing very quickly A tail -f of the file scrolls very quickly Do I need to look into connection pooling?
1
vote
2answers
3k views

Process running in background got killed in linux

I am having a remote server to which i connect using ssh. I started a process(mongodb) on the server using following command- "/usr/bin/mongod --dbpath /mnt/ebs-300/mongodb --logpath ...
1
vote
2answers
104 views

Stop mongos process

May be a dumb question, In a sharded database configuration, I launched my mongos with the following command : mongos --configdb config1:27019,config2:27019,config3:27019 I now need to stop mongo ...
1
vote
1answer
1k views

mongoDb 2.6 fails to start on Oracle Linux using the init script

Installed MongoDb 2.6.3 on OL 6.3 using yum, but the default init script seems to fail both when trying to stop and start the mongod service. I could trace the problem with stopping to $pid_file being ...
1
vote
1answer
2k views

Mongodb error - Out of file descriptors. Waiting one second before trying to accept more connections

Details Here is what I see in the logs file 2014-09-08T10:22:43.143+0000 [initandlisten] ERROR: Out of file descriptors. Waiting one second before trying to accept more connections. ...
1
vote
1answer
7k views

mongod service not starting

I've installed mongodb in Debian Squeeze using this guide (guide here) Installed successfully. It was running well until I restarted the machine (using command "reboot"); After restart, mongodb is ...
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" ...
1
vote
1answer
810 views

Incremental backup mongodb using rsync

I want to store small files (60 kb, couple of millions) into MongoDB, I was thinking using GridFS, but it seems BSON will do. Anyway, I want to make rsync to backup the mongodb chunk files, so ...
1
vote
1answer
421 views

MongoDB starting gets terminating

I am installing the mongodb with the default configurations, and that gets started normally, but when I changed the dbpath value to point to different position it started giving me the exceptions, can ...
1
vote
1answer
1k views

Why is mongod not using all available RAM?

We have an mongod instance runnning on a VM, and it doesn't seem to be using all available memory. It's page-faulting significantly more than usual, and the system's performance has been significantly ...
1
vote
2answers
667 views

Multiple Amazon EC2 With Load Balancing And MongoDB

I have an Amazon EC2 server where we run a webapp and MongoDB. We want add a second EC2 server and a Load Balancing to the same region. Load Balancing will redirect all web requests (80 and 443) to ...
1
vote
2answers
1k views

Installing Mongo driver for PHP using Puppet+Vagrant

I'm playing around with Vagrant and Puppet, provisioning a development machine for a project based on Apache/PHP/Mongo. I have all components setting up correctly (using modules from Puppet Forge), ...
1
vote
1answer
838 views

Thread Safe php-pecl-memcache and php-pecl-mongo

I'm looking to switch a Fedora server running Apache from prefork to worker. Everything seems to be fine except the php libraries for Mongo and Memcache. Has anyone had any success getting these to ...
1
vote
1answer
49 views

Is this normal or due to bug in mongodb?

I am new to mongodb and i installed it on xen para virtual vm and when given command "mongo" terminal freezed and on the top output command mongo is taking almost 100% CPU. Is this a bug,or does ...
1
vote
2answers
299 views

Mongo Scripting the shell

On my production stack, I have a front-end server and a Mongo server. I would like to be able to set a cron job on the front-end server to create some logs daily. I wrote a script that does this: ...
1
vote
1answer
832 views

diagnosing mongodb major faulting and erratic behavior

We have a mongodb instance running on an amazon ec2 large (7.5GB) ubuntu instance (same machine that our node.js server is running from). Traffic has increased a LOT recently and we are starting to ...
1
vote
1answer
717 views

MongoDB on FreeBSD

We are currently using MongoDB 2.0.0 on MacOS but our servers are running FreeBSD. The most recent port of MongoDB is the 1.8.3 version. I have tried to compile the 2.0.0 by hand but I came across ...
1
vote
1answer
606 views

MongoDB ReplicaSet Elections when some nodes are down

I'm trying to get into ReplicaSet concept, and found something weird in mongoDB Documentation: For a node to be elected primary, it must receive a majority of votes. This is a majority of all ...
1
vote
1answer
356 views

Random timeouts between zones in Amazon EC2?

I am having issues with tcp connections between two instances in EC2. I thought at first it was the tools I was using (JRuby on Rails stack + MongoDB) when I saw exceptions such as the following in my ...
1
vote
1answer
644 views

MongoDB Collection size performance / More Collections vs more Documents

Does anyone have an idea of mongodb performance? I've been using mysql for years and im trying to determine if its more optimal to have more collections or more documents (referring to very large ...
1
vote
1answer
825 views

Nginx Passenger returning 500s for every request

Up until this point I've been using the standalone passenger (nginx-based) for my application. Everything works fine. I've decided to move to an nginx based solution since I need to be able to ...
1
vote
1answer
167 views

EC2+Mongo or Something+SimpleDB

I'm new to the db and cloud world. So I'm writing an app that needs to query a very simple data (open/closed status of some location). I thought of two options: 1) An ec2 micro instance running ...
1
vote
2answers
164 views

Suppress startup status message in mongod

I'm setting up mongod to run in an /etc/init.d script. This may be a nitpick, but is there a way to avoid this? # service mongod start Starting mongod: forked process: 19820 all output going to ...
1
vote
2answers
5k views

how to limit memory size a process can consume in linux

I am trying to figure out how to limit memory usage of mongo daemon to 4G. I thought to use limits.conf with memlock but I am not sure that's the right way to do it. from limits.conf man page I've ...
1
vote
2answers
2k views

Why MongoDB docs recommends to run Raid 10 on EBS?

They seems like to talk only about performance, which I believe it's not the case compared to other hybrid RAID types. See here: ...
1
vote
1answer
578 views

How do I restore my mongodump backups to my newly sharded architecture? (Mongodb)

I have a directory of bson files (Results from my mongodump). OK, so I just set up a new architecture for sharding MongoDB. (2 replica sets--3 servers each, and also 1 config server and 1 mongos ...
1
vote
1answer
2k views

Can't install mongodb via 10gen.repo on Amazon 64bit AMI

Following the instructions here: http://www.mongodb.org/display/DOCS/CentOS+and+Fedora+Packages Can't really decipher what I should be doing...broke down and just got the linux binary but I want yum ...
1
vote
1answer
83 views

Cannot connect to mongodb instance on Azure

I have setup a mongodb server on Azure (on Ubuntu 15.04). The instance works and I can connect to mongodb when ssh'd into the machine by simply using 'mongo'. However, when I try to connect from my ...
1
vote
1answer
4k views

mongo db installation showing storage engine error

I just installed monodb(version 3.2) at my windows machine. I created /data/db directory also. when i give the command "mongod" to start it, it shows the following error exception in initAndListen: ...
1
vote
1answer
96 views

AWS, NodeJS - Connecting app to Mongodb on another EC2 instance

I am trying to connect my app, running on one EC2 instance, to MongoDB, running on another EC2 instance. I'm pretty sure the problem is in the security settings, but I'm not quite sure how to handle ...
1
vote
1answer
234 views

Trying to downgrade MongoDB on CentOS

I'm running CentOS 6.7 on a Hyper-V, which means that I can't do an in-place upgrade to 7.0. Today I did a server restart, and some time between the last time I did a restart and today my ...
1
vote
1answer
358 views

Adding an admin user to a MongoDB

I'm using MongoDB 3.0.3, and I've been having issues with creating users. I created a user on the admin database using db.addUser('admin', '....'). I gave it dbAdminAnyDatabase privilege. The output ...
1
vote
2answers
52 views

Mongodb: handle offline queries without affecting regular queries

I have a MongoDB replica set with Three members: primary, secondary and hidden secondary, only for backups. Ideally, I want to add additional instance dedicated to running slow batch operations. The ...
1
vote
1answer
295 views

Fluentd not writing apache access log to mongodb

I'm following the instructions from this link to write apache access logs to mongo db- http://docs.fluentd.org/articles/apache-to-mongodb. But nothing is getting written to mongo DB. I'm checking ...
1
vote
1answer
546 views

mongorestore with indexing in foreground

I need to restore huge dump taken with mongodump utility. As the collections are big and mongorestore rebuilds indexes in backround, index building takes very long to finish. What I want is to somehow ...
1
vote
2answers
59 views

Background indexing MongoDB on server

I have a collection on a server containing ~23 million documents. I need to index this collection and obviously this will take a long time. If I run this indexing operation with background: true ...
1
vote
1answer
718 views

Mongodb: The paging file is too small … v2.6.4 on Win2012

We had this a couple weeks ago, and mongo would not restart. We have 30GB RAM. The paging file had originally ben 4gb. When we first hit this a couple weeks ago, we incrased the paging file to 12GB ...