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

learn more… | top users | synonyms (1)

1
vote
1answer
621 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 ...
0
votes
1answer
55 views

MongoDB sharding authentication with multiple keyFile's

I have configured MongoDB with sharding something like below. Shard1 Shard2 Shard3 -------- -------- ------- rs1(Pri) rs1(Sec) rs1(Sec) rs2(Sec) rs2(Pri) rs2(Sec) rs3(Sec) ...
0
votes
1answer
482 views

Mongodb monitoring using mikoomi plugin of zabbix is not rendering any data

I'm using mikoomi plugin https://code.google.com/p/mikoomi/wiki/03 to monitor mongo db, in that there is shell script which is calling php script and returning 0 to zabbix and parallely writing a data ...
3
votes
1answer
2k views

php-devel failed on installation red-hat 6

I'm trying to install mongodb driver with pecl and for this i need phpize (php-devel). Does anyone know how can i resolve this issue or there is another way to install php-mongodb driver? I try as ...
1
vote
2answers
363 views

Load Balancing MongoDB

I have an application written in java with tomcat that I am ready to start scaling for production. As I understand it, i shouldn't use a load balancer with mongodb router instances as it can cause ...
3
votes
2answers
612 views

Mongo Sharding - Config Server and Mongo Authentication

I am needing to shard a database fairly soon, and am unclear on what the best practice is for enabling authentication on the mongos and config servers. I would like to have everything be secured with ...
0
votes
0answers
28 views

MySQL version of MongoDB Replica. OR MySQL MongoDB Driver

Not sure if this is the right stack exchange site for this question so if it is can you please advise which one would be best. Is there any way to either: A)Have MySQL run via a dedicated driver / ...
0
votes
1answer
679 views

MongoDB Failover Replica Set

I'm newbie to mongodb replica sets and sharding.. I am setting up IP Failover on two servers. I set up DNS failover at AWS route 53 to switch the IP address in case the main server goes down. I also ...
1
vote
1answer
497 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 ...
1
vote
1answer
154 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 ...
0
votes
1answer
43 views

Mongodb stats explanation

When doing a mongotop, on my mongo inst6allation I get the following data mydb_live.my_logs 10303ms 10302ms 1ms So the total is 10303ms, the read is 10302ms and the write is 1ms. ...
2
votes
2answers
995 views

how can I install MongoDB as a service in centOS

I'm new to Linux, I followed this tutorial provided by the official 10gen documentation, as far I see I'm able to run mongoDB db in the console but I'd like to run it as a service. this is what I got ...
0
votes
1answer
1k views

MongoDB: unable to load driver on PHP [closed]

I'm trying to make mongo-php-driver work with PHP 5.5.7 on OS X 10.9.1 but I came to a dead end, I've tried everything I could possibly find and nothing works... Everything compiles just fine, but ...
-1
votes
1answer
2k views

Mongodb can' t be restarted (child process failed, exited with error number 45)

I received an error "child process failed, exited with error number 45" after typing "service mongod restart" and i checked the /var/log/mongo/mongo.log as below: SERVER RESTARTED Sat Dec 21 ...
1
vote
1answer
310 views

Mongodump segmentation fault when dumping all dbs

I'm running a mongodb(2.0.4) replicaset with one master and two slaves where one is hidden slave for backup. I'm using http://docs.mongodb.org/manual/core/replica-set-architecture-three-members/ When ...
2
votes
1answer
26 views

Create MMS alert to monitor primary availability

Is there a way in MMS to define an alert to monitor the case where none of the servers in a cluster get promoted to primary? I tried defining the following alert: 'Alert if host of type primary is ...
1
vote
1answer
1k views

mongo server does not start on Centos 6.4

I have a mongo server installed and when I try to start it with, always fail. OS: CentOS release 6.4 x86_64 Mongo version: 2.4.8 I have other machines working with the same versión and puppetized ...
0
votes
1answer
417 views

Cannot install in mongodb in ubuntu 13.04

I follow the instruction provided by mongodb. But seems package mongodb-10gen isn't existed. vagrant@m1:~$ sudo apt-get install -y mongodb-10gen Reading package lists... Done Building dependency ...
4
votes
1answer
625 views

How to calculate the required EBS PIOPS for our mongo server?

We want to use provisioned IOPS EBS volume on our mongo machines, I'm a bit confused on how to calculate the number of provisioned IOPS to use. Currently we're getting an average of 25 IOPS (read + ...
1
vote
1answer
332 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 ...
0
votes
2answers
309 views

mongod non-mapped virtual memory doubled suddenly, has not changed since

The non-mapped virtual memory stat for our mongo primary has always been constant, and we never gave it much thought before yesterday. Yesterday, a series of accidental full-collection scans from a ...
2
votes
1answer
60 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
137 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
98 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
40 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
285 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
352 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
288 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
394 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
443 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
20k 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
368 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
111 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
112 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
158 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
523 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
1k 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 ...
2
votes
1answer
604 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
846 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
172 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
554 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
420 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
34 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
292 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 ...