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

learn more… | top users | synonyms (1)

2
votes
1answer
64 views

How do I find mongodb write statistics per database?

How do I get write stats per database and per collection? mongostat seems to only provide write info globally for the server. Is there a way to get more granular detail about i/o?
0
votes
1answer
158 views

Spawning mongod process using sudo yields two separate mongod processes

I am seeing something weird that I can not figure out: If i run the following command sudo mongod --dbpath /db/database/ --logpath /db/logs/mongodb/mongodb.log & and then do a ps aux I see ...
1
vote
1answer
107 views

MongoDB Balancer

So I have 2 sharded clusters with 3 servers each.My mongos is running, my config server is running and ive also added test data to 1 of the 2 shard clusters. I am having trouble getting that data to ...
0
votes
1answer
43 views

Login authentication vanished from MongoDB install

A few months ago I enabled password protection on my MongoDB install. Today I ran the Mongo client and forgot to use my login details. Instead of rejecting nearly everything I try to do from the ...
0
votes
1answer
314 views

mongodb : Can create new thread on FreeBSD?

We experienced some strange thing in our mongodb gridfs platform. The platform actually is a bi Xeon E5 (bi quad core) with 128GB of memory, running on freebsd 9 with a zfs pool dedicated for mongodb. ...
1
vote
1answer
402 views

Changing MongoDB Oplog size

while loading data to mongodb, I keep getting "error RS102 too stale to catch up"... After research I found that my default oplog size for a 32 bit linux machine is too small. I would like it to be ...
0
votes
1answer
312 views

How would I template an SLS using saltstack

I'm trying to do proof of concept with Mongodb(sharding) and Id like to run a command every time I spin up a new cluster without having to add lines in all my sls files. My current init is as follows: ...
0
votes
1answer
1k views

Wrong php_sufix config variable in MAMP [closed]

I've just installed MAMP and I'm trying to install the Mongo extension via pecl but I'm getting an error: jonesy:bin Billy$ sudo pecl install mongo downloading mongo-1.4.4.tgz ... Starting to ...
1
vote
1answer
475 views

Why mongo pecl module looses its connection after Primary stepDown?

I run an Apache 2.2.22-13 with pecl module "mongo 1.4.4". It connects to a MongoDB 2.4.6 sharded cluster. When a stepDown occurs, the mongo module seems to stay on the mongod node which was the ...
0
votes
0answers
488 views

CentOS 6 - Mongodb - Invalid access at address xxxx from thread: initandlisten

For starts I looked everywhere online for this, a lot of people have the problem, no one has a working solution. I've installed mongodb using yum and their instructions provided at ...
9
votes
2answers
24k views

/etc/security/limits.conf soft nproc limit appears to be ignored

My MongoDB database was running into problems under load, with the following errors spamming the logs: [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable [initandlisten] ...
1
vote
2answers
425 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
votes
2answers
1k views

MongoDB on EC2 - Could not stat /dev/xdf — No such file or directory

I'm following a tutorial for setting up MongoDB on EC2 and I got stuck at the following part: $ sudo mkfs.ext4 /dev/xdf mke2fs 1.42.3 (14-May-2012) Could not stat /dev/xdf --- No such file or ...
2
votes
1answer
140 views

MongoDB Sharding Config and MongoS Storage

In doing this year's budgeting, I need to estimate the capacity needs for next year. We are planning on needing to shard our MongoDB Replica Set out to 4-shards, but I have the disk capacity needs ...
1
vote
1answer
115 views

MongoDB cloneCollection between Azure hosted CentOS servers times out at 2 hours

I'm trying to clone a MongoDB collection from CentOS server A to CentOS server B. Both are running 2.4.6. The copy works great until exaxctly 2 hours, at which point I get a 9001 socket exception: ...
1
vote
3answers
3k views

Mongodb - proper way to rotate logs

Mongo docs say that I can: use -SIGUSR1 signal and get the old log renamed and current switched use logrotate from OS I want the OS's logrotate ability to zip old files and remove oldest, but see ...
0
votes
1answer
187 views

What's special in restoring a DB in a MongoDB sharded cluster?

I'd like to migrate a DB from a replica set to another which belongs to a sharded cluster. Till now, this cluster has got only 1 shard, and no collection or database is really sharded. I mongodumped ...
1
vote
1answer
30 views

Query related to production environment

I have configured my production environment with the following details: 1. Three config server 2. Two routers (`mongos`) 3. Two shards of three node replica sets. My question is: I am trying to ...
1
vote
1answer
575 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 ...
2
votes
1answer
2k views

Can I use MongoDB with Amazon EC2 small instance?

I want to move my MongoDB from a virtual server to amazon web services. I know MongoDB provides a preconfigured AMI, with three provisioned EBS volumes. But this is only available for m1.large ...
3
votes
1answer
758 views

MongoDB getting OOM killed

we are running a mongodb replicaset on three machines. All three machines have around 16GB but only 255MB Swap. Swappiness is left on it's default value 60. The machines are running CentOS 6.4. The ...
1
vote
2answers
906 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), ...
0
votes
1answer
184 views

How could I avoid having 90 CPU Load only by pressing F5 on my browser?

I have a php website and If I press on F5 on my browser I get this CPU load : $ w 11:34:54 up 16 days, 1 min, 5 users, load average: 90,81, 32,02, 12,57 It come from every pages on my website ! ...
0
votes
1answer
673 views

server load too high on mongodb server

I have a mongo server on ec2 and its storing some collection which is having 12+ millions documents. Their are 7 other instances trying to fetch some documents from the mongo server. Also their are ...
0
votes
1answer
455 views

How good is this MongoDB/EC2 setup? [duplicate]

Hi, I wondered what was a good setup for AWS/MongoDB in terms of machines and the sizes of their disks. Current setup 3 micro machines for the config servers, 1 mongos and arbiters. The 8Gb limit ...
1
vote
1answer
35 views

Mongodb spamming log

I found that mongod writes [snapshotthread] cpu: elapsed:4000 writelock: 0% continuously. So it one day log now about 2Mb. What does it mean and how to disable this?
2
votes
2answers
1k views

How to check mongodb metadata's integrity?

I had to replace a mongodb config server in a cluster that contains only 1 shard. By mistake, I started the new config server without any data and got the following message in the logs: ...
0
votes
1answer
336 views

Failure to connect to MongoDB - couldn't connect to server

I am using a reverse-ssh tunnel to make a DB behind firewall available from remote machine. But here is the intriguing part: From AWS server with ssh tunnel to DB behind firewall: connecting to IP ...
0
votes
1answer
1k views

How to install mongodb on SUSE Linux Enterprise Server 10 (x86_64)

I download mongodb for distrubution SUSE Linux Enterprise . . I downloaded mongodb from link http://downloads.10gen.com/linux/mongodb-linux-x86_64-subscription-suse11-2.4.5.tgz and extract it to ...
1
vote
1answer
352 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
854 views

Setting up MongoDB for multi-db authentication

I have a MongoDB that has the regular authentication setup so you need a username and password to connect to the database (auth=true in the configs). The problem I'm running in to is that I have some ...
1
vote
1answer
127 views

Nginx PHP Consistently Slower than Apache 2.2

NOTE: I asked this first on StackOverflow and was sent here. I hope the repetition is OK. In doing load testing comparing Apache 2.2 and Nginx 1.2.6 running using fully stock packages on Ubuntu ...
-1
votes
1answer
308 views

10gen mms monitoring service to start after reboot [duplicate]

I have setup MMS agent for my mongoD instances on AWS. MMS Agent is on a separate t1.micro instance. It all works fine however, every time I reboot the server I have to run sudo nohup python agent.py ...
0
votes
1answer
309 views

How to configure a MongoDB configsvr and arbiter on same instance?

I am setting up an arbiter onto the same machine as a config server, but having some trouble with the default 10gen /etc/init.d/mongod file. I tried creating an additional /etc/init.d/mongod-arb for ...
1
vote
1answer
1k views

mongorestore from stdin

On a remote server I have a file which is the mongodump output compressed, let me say a file called mongodb.tar.gz. Inside mongodb.tar.gz there is a directory structure like this: dump/dbname/ ...
0
votes
1answer
1k views

Move Mongo Database to a different location

I want to run MongoDB on an Amazon EC2 off the local drive and default folder and move all data files, log files, on mounted raid5 ebs drive. I have already tried both methods: 1- edit the ...
1
vote
1answer
182 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 ...
4
votes
2answers
696 views

How to change the master in a MongoDB cluster without restarting the process?

Reading the documentation of MongoDB about how to configure a master-slave configuration of a cluster (our cluster will have more than 12 nodes, so unfortunately we can't have a replica-set ...
0
votes
1answer
188 views

Mongodb over Lustre?

I need to install a mongodb instance with a lot of data storage. We have a Lustre FS with hundreds of terabytes, but when monogdb start show me this error: Mon Jul 15 12:06:50.898 [initandlisten] ...
5
votes
1answer
539 views

How can I filter MongoDB Replica Set Heartbeats with tcpdump?

Occasionally, when troubleshooting the health of a replica set, I'd like to filter out the heartbeat packets specifically, track them going out, and the subsequent reply (or lack thereof) without all ...
0
votes
1answer
161 views

Deb 6: Can't install Mongodb 64; uname -m and arch both return x86_64

As the title suggests, in bash the commands uname -m and arch both return x86_64, suggesting to me that I'm on a 64bit OS and processor. But, when I use aptitude or apt-get to install the package ...
1
vote
4answers
2k views

Restarting MongoDB automatically if it crashes

I am running MongoDB on an Ubuntu server. It's using an upstart script to start mongod when the machine boots. I noticed that if the process crashes, it doesn't get restarted. How can I make sure ...
2
votes
2answers
198 views

With 3 production nodes, why Mongodb complains about even voting nodes?

I run a mongodb sharded cluster with 1 shard, 1 replica set (2 secondaries, 1 primary, 1 delayed slave). Frequently, the following message appears in the logs: [rsMgr] replSet total number of votes ...
0
votes
1answer
1k views

MongoDB new replica set node not coming online

After adding a new MongoDB replica set node on the primary I get > rs.status() { ... { "_id" : 2, "name" : "nde3.test.com:27017", "health" : 1, ...
0
votes
1answer
25 views

How do you deny a user access to a certain collection in mongo?

I have several collections that I would not like certain users to see. How would I go about "hiding" them or blocking a user from viewing?
0
votes
2answers
728 views

Problems with running a node.js application using mongoDB on a VPS running CentOS

I have registered a VPS with DirectAdmin, running CentOS and I'm using a domain which I registered from a different site. I've done the necessary configuration to make the domain display the default ...
1
vote
1answer
497 views

MongoDB is not using all of my system memory for working set?

My machine has 42GB RAM, and the total index size is 40GB (working set should be 100% filled as the indexes are all on UUID columns). I suspect my working set is too large as the page fault started ...
2
votes
2answers
328 views

Cannot Restart MongoDB 2.4.3 on Debian 6.0.7 (32-bit)

I installed MongoDB on a Debian VM using apt-get from the 10gen repository. Some time after the install, I wanted to enable authentication in the configuration file, but when I ran service mongodb ...
2
votes
1answer
83 views

Add new shard - always best? [closed]

In our setup, we currently have 3 shard set sharded cluster, each shard being a replica set of 3. Our writes are about to go up significantly to implement a new feature, and we know the extra data ...
2
votes
1answer
143 views

Mongodb production server too slow compared to staging

We have two sets of db and app servers running on Rackspace VPS. Production and Staging. The app is on Rails and db is MongoDB. While staging(with as many documents as prod, 55k) works just fine, ...