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

learn more… | top users | synonyms (1)

2
votes
3answers
501 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 ...
0
votes
0answers
26 views

Strange Mongo DB writelock values in logfile

I'm getting some strange writelock values in my Mongo DB logfile: Wed Mar 19 10:03:47.007 [snapshotthread] cpu: elapsed:4010 writelock: 0% Wed Mar 19 10:03:51.007 [snapshotthread] cpu: elapsed:4000 ...
1
vote
1answer
242 views

mongodb cannot connect over network

Im trying to connect to a mongodb server over a network but I cant get the connection to work. I can connect like so on the local computer on which the server is running: mongo localhost:27027 But ...
1
vote
0answers
123 views

MongoDB Performance Troubleshooting

I have a small MongoDB replica set (2.4.6) and it seems about once a week, the primary gets bogged and the load average spikes up. This app doesn't see a huge amount of traffic. It resides in EC2 ...
1
vote
1answer
31 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
60 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 ...
0
votes
1answer
58 views

When does the replication from primary to secondary happen in mongodb?

I have setup a 3 node replica set. Writing to primary node works but when I read with readPreference=secondary; I get values as null. When I open the local node with robomongo I see that the ...
2
votes
1answer
83 views

mongodb 2.4.9 is crashing on wheezy when running as root

I installed mongodb-10gen v2.4.9 on a debian Wheezy, and I'm having this really weird behavior: if I run it as root I can't get it starts: root@xx:~# /etc/init.d/mongodb stop [ ok ] Stopping ...
0
votes
1answer
68 views

MongoDB: big size of mapped memory

I'm not expert in mongo memory management but some things confuse me. I use Mongo 2.4.9 and I have a replica sets for three nodes. I have performed db.serverStatus().mem and see that size of mapped is ...
-3
votes
1answer
146 views

Adding more space to VirtualBox HD (Centos Host) does not add space in the folder [closed]

I am running Centos 6.5 guest on Windows 7 Pro host (VirtualBox v4.3.6) - all 64 bit. I am trying to increase the size of Centos virtual disk (which is currently about 15G) to 90G. I did run the ...
1
vote
1answer
172 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
36 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
156 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
777 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
107 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
133 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
24 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
163 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 ...
0
votes
0answers
44 views

OpenVPN port mapping + mongoDB

I have a Digital Ocean droplet running CentOS with MongoDB (port 27017) and OpenVPN server, and a Windows client. Problem is I can't connect to the mongo server through my VPN tunnel. Tunnel is ...
1
vote
1answer
102 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
0answers
44 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
25 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
120 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
350 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
802 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
158 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 ...
0
votes
0answers
88 views

Insert if upstream_cache_status

I have a piece of lua code that should be working only when response from upstream_cache_status is HIT, however I don't seem to be able to do this. I'm using nginx and a mongodb server here. I'm ...
2
votes
1answer
22 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
292 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
168 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
203 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
167 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
81 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
39 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
52 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
60 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
31 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
134 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
96 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
0answers
48 views

Setting up MongoDB sharding

Would anyone know how to setup MongoDb with 2 sharding clusters? So it must include shard keys, config servers etc.. All using configuration management tool saltstack
0
votes
1answer
188 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
704 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 ...
0
votes
0answers
123 views

Uninstall Mongo DB completely

I followed the following steps to install MongoDb on my centos machine. http://andres.jaimes.net/876/setup-mongo-php-module-centos-6/ As mentioned at the end of the document, in the phpinfo() the ...
0
votes
0answers
59 views

Node.js server crashes , Database operations halfway?

I have a node.js app with mongodb backend going to production in a week and i have few doubts on how to handle app crashes and restart . Say i have a simple route /followUser in which i have 2 ...
0
votes
0answers
80 views

Using MongoDB + Redis + Apache on the same server in production?

I intend to launch my web app using a 8 GB VPS. It uses MongoDB + Redis for storage/caching and Apache + PHP-FPM for serving requests. Could there be any issues with running Mongo + Redis + Apache ...
0
votes
0answers
95 views

installed mongo using brew but stuck at prompt

I have installed mongo using brew on my mac. When I give mongo command I see this MongoDB shell version: 2.4.6 connecting to: test but it stays there and never give me command prompt back anyone ...
1
vote
0answers
156 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
202 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 ...
3
votes
2answers
6k 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] ...
0
votes
0answers
95 views

Jboss lost connections to MongoDB “WARNING [com.mongodb] emptying DBPortPool to /x.x.x.x:27017 b/c of error”

I have a few Jboss 5.1 servers which uses MongoDB data set. Till yesterday I had 3 Mongo 2.0 nodes in this dataset. Yesterday I added 2 Mongo 2.4.6 secondaries to this dataset; and after that I see ...