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

learn more… | top users | synonyms (1)

1
vote
1answer
344 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
2answers
215 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
652 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
632 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
397 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
309 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
553 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
680 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
165 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
144 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
484 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
2answers
26 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
162 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
44 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
360 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 ...
1
vote
1answer
244 views

Setup MongoDB on MS Azure virtual machine to access it from an azure website

I have setup a MongoDB replica cluster on 3 virtual machines (Ubuntu 14), on MS azure cloud. The mongodb cluster has been setup with MMS (https://mms.mongodb.com amazing tool btw) and it works fine. ...
1
vote
1answer
399 views

MongoDB - DB/collection fragmentation level

I recently had a performance issue with one of my collections. On a whim (and thanks to this article), I decided to try compacting (as written in the official documentation). This worked brilliantly. ...
1
vote
1answer
4k 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
1answer
721 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
182 views

Amazon OpsWorks - unable to reference ebs volume in mongo dbpath

I'm deploying mongo with Amazon OpsWorks as described in the Setting Up a MongoDB Replicaset With AWS OpsWorks and the instance fails to start when I specify mounted ebs volume (/data/ebs) in dbpath. ...
1
vote
1answer
461 views

trying to install mongo but getting errors

I am following mongo site (http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ ) to install mongo on my centos 5.1o I am getting following errors sudo yum ...
1
vote
1answer
164 views

Starting MongoDB with SystemD by listening to a Socket

I'd like to run MongoDB on my development machine whenever the Port 27017 requested but not before that. I already got parts of the file /usr/lib/systemd/system/mongodb.socket but now I'm stuck what ...
1
vote
1answer
350 views

Is it safe to snapshot an mdadm RAID with only xfs_freeze?

Is mdadm guaranteed (and trusted via experience) to be safe for taking snapshots with only an xfs_freeze? I have encountered vague warnings about mdadm still working in the background, thus making ...
1
vote
1answer
555 views

Very high disk IO on Mongodb Config servers

Perhaps someone could tell me if this is expected or not (It doesn't seem normal to me)... On all 3 of my config servers I am seeing consistent high disk IO, even when the sharded-cluster has ...
1
vote
1answer
175 views

Re-mount EBS vol on EC2 instance

I am new to sysadmin. I am trying to launch a EBS-backed EC2 instance. I did the following based on mongodb docs: sudo mdadm --verbose --create /dev/md0 --level=10 --chunk=256 --raid-devices=1 ...
1
vote
1answer
412 views

Strange behaviour starting process with init script

I'm seeing some strange behaviour when starting a process with an init script. Most likely I am doing something stupid, but perhaps someone could let me know what might cause this behaviour: ...
1
vote
1answer
233 views

mongodb mystery crashes with sigkill under strace

I have a mongodb instance that seems to crash roughly once a day. I don't see any useful information in the mongo log file. All is well and then the process is just crashed with no additional ...
1
vote
1answer
2k views

How much of hardware resource is required for Graylog2? [closed]

We've mounted a graylog2 dedicated server (with a rails unicorn, mongodb and eleasticsearch) on a virtual machine with 2gigs of ram a couple days ago. RAM Consumption just keeps climbing, I am ...
1
vote
3answers
222 views

Amazon EC2 High-Memory Extra Large Instance [closed]

I am new to Mongodb and EC2. If I use following single MongoDb server : High-Memory Extra Large Instance 17.1 GiB memory, 6.5 ECU (2 virtual cores with 3.25 EC2 Compute Units each), 420 GB of local ...
1
vote
1answer
1k views

Setting up mongodb via upstart - how to pass options?

I installed MongoDB in an Ubuntu Server VM inside VMware using these instructions: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. Everything works fine, and I can access MongoDB ...
1
vote
2answers
482 views

Low priority batch processes on live Mongo database

We want to run MapReduces on our live Mongo database, mainly so that we can extract metrics. However, we've had some bad outages caused by these MRs bogging down the Mongo server (in particular 100% ...
1
vote
1answer
290 views

enkive mail archive ldap setup

I am trying to set up mail archiving using enkive with exchange. i have followed the installation of all the prerequisites for enkive. i run enkive with defaults and i get error in the log file Aug ...
1
vote
1answer
439 views

MongoDB: Random Vs Sequential Read Performance

I have a single-instance mongodb with a collection with 3 fields: _id, block_id, payload. Payloads are always 4096 byte binaries _id is an ever-incremented unique integer There is a secondary ...
1
vote
1answer
36 views

Mongo is not account specific

I have mongo running on my system however I can access all my databases/collections from other peoples accounts. Can I secure specific collections? How do I block access to my collections but not cut ...
1
vote
1answer
1k views

Where does gentoo store mongodb.conf? Want to change dbpath location

This may seem like an innocent enough question, but I can't for the life of me figure out where gentoo puts mongodb.conf after installation from portage. The documentation says to look under /etc/, ...
1
vote
1answer
1k views

MongoDB REST interface not listening after update

I replaced the mongodb-10gen install with the Ubuntu package (mongodb-server, mongodb-client and dev). apt-get install mongodb Thereafter, I am now unable to connect to the REST interface, where ...
1
vote
1answer
271 views

MongoDB not replicating properly

I am using mongoDB for my application hosted on 3 amazon instances. I have a got a Primary Node with highest priority (100) and 2 Secondaries with priority 99 and 98. A few days ago I started getting ...
1
vote
1answer
2k views

How to change the default admin username and admin password in RockMongo?

I am using RockMongo admin tool and I can access it usingthe default username admin and admin password settings. I would like to change it however the documentation is a little cryptic. I have even ...
1
vote
1answer
228 views

mongo shell / readline / osx

I would like to get the mongo shell to work with readline under osx lion so it picks up my inputrc and I can get all my funky vim bindings. I tried: scons -j 16 --64 --extralib=readline ...
1
vote
1answer
74 views

AWS use local area IP or public one to network apps?

I have a web server with a separate database server in this case a MongoDB, both are hosted on EC2, but when connecting my webserver to my database server is it best to use the public IP address or ...
1
vote
1answer
560 views

Problems with MongoDB server, (anon):1137 exception connect failed

I have recently installed MongoDB server on Ubuntu. It was working and I use id from PHP too but, I don't know why it started failing. It's the first time I use mongodb so I am a bit lost. Actually, ...
1
vote
1answer
610 views

MongoDB: Fixing ReplicaSet Error on reconfig - “Server::doWork task:rs Manager exception:unauthorized db:local lock type:2 client”

Question: How do I fix my servers and get them back to the normal ReplicaSet with no error messages? I'd offer a serious bounty, but all my points are on SO :( Details of the Problem I'm running a ...
1
vote
1answer
2k views

Getting MongoDB to use max open file descriptors in /etc/security/limits.conf

I've got a MongoDB server that runs out of file descriptors for open connections. I changed the settings in /etc/security/limits.conf so that every user gets a hard and soft limit of 65000 of open ...
1
vote
4answers
373 views

centos + mongo questions

Where does mongo install on centos? I want to remove some databases and file collections as well as uninstall it all together, can anyone help?
1
vote
2answers
1k views

Storing Hundreds of Millions of Records

My company will be coming into possession of a dataset consisting of approximately 200-300 million records. The source material is csv and is about 150GB uncompressed. We would need to perform an ...
1
vote
0answers
13 views

MongoDB fsyncUnlock won't unlock occasionally on Windows

We have a MongoDB replica set installed on Windows servers, with a scheduled backup job. MongoDB is configured to use journaling. The job runs db.fsyncLock() via script on MongoDB (primary server), ...
1
vote
0answers
4 views

Huge oplog size after full sync on one secondary causing performance issues - MongoDB

I'm a MongoDB newbie. I have a replica set with 3 members (1 primary and 2 secondaries) on CentOS 6 and Mongo 2.6.8. One of the secondaries crashed because of high consumption of memory and I ...