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

learn more… | top users | synonyms (1)

4
votes
2answers
423 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
101 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
333 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
112 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
791 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
144 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
758 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
24 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
419 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
311 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
239 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
68 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
100 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, ...
0
votes
1answer
600 views

Should you compact your MongoDB frequently?

I have read a post from Parse [1] that you can run compact in order to save the index size on the MongoDB. Our total index size is 10GB, and our total memory memory is 12GB, as you might know the ...
6
votes
3answers
2k views

node.js, mongodb, redis, on ubuntu performance degradation in production, RAM is free, CPU 100%

As the question title suggests, I'm having an hard time to figure out what can be improved on my application(or tuned in the os, ubuntu) to achieve an acceptable performance. But first I'll explain ...
1
vote
1answer
245 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
2answers
440 views

Mongodb sharding - Init script for mongos process?

I've been running mongodb as a replica set, and have recently attempted to move to a sharded cluster. One thing I'm a little unsure about is how I should be starting the mongos process. Previously I ...
0
votes
2answers
205 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 ...
0
votes
1answer
2k views

Removing MongoDB from Ubuntu

I recently started to mess with setting up ReplicaSets. After some testing and playing, I was wanting to remove MongoDB and all settings, and start with a fresh install on all systems to get it ...
0
votes
1answer
177 views

What causes SocketException (9001) handling request in node.js app and MongoDB ReplicaSet?

I have a simple node.js application that makes a single call connection call to my ReplicaSet. Things were actually working fine earlier today and nothing was changed in the application, now my ...
1
vote
1answer
148 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 ...
2
votes
1answer
1k views

How to tune system settings for mongoDB on Linux?

Trying to squeeze a lot out of one question here -- please bear with me. Although the MongoDB man pages make several useful recommendations about system settings like ulimit ...
0
votes
1answer
1k views

MongoDB Locking - Very, very, slow to read

This is the output from db.currentOp(): > db.currentOp() { "inprog" : [ { "opid" : 2153, "active" : false, "op" : "update", "ns" : "", ...
0
votes
1answer
134 views

Error getting data from Mongo Monitoring Service - ConnectionFailure: unknown encoding: idna

I am having issues installing MMS. I have it installed on an agent. I can connect to a mongos instance from the server the agent is installed on. In the agent log, I see the following messages ...
0
votes
2answers
95 views

remove a mongodb replica set when into a sharding cluster

I have this configuration: mongos> db.adminCommand('getShardMap') { "map" : { "RS13" : "RS13/mongo09-02:27003,mongo09-01:27001", "RS13/mongo09-02:27003,mongo09-01:27001" : ...
0
votes
2answers
172 views

MongoDB Failover Time

I have a MongoDB 2.4 replica set of six nodes and an arbitrator running in a test environment. I was testing the fail-over response time and it was around forty-five seconds. Keep in mind, reads are ...
2
votes
1answer
189 views

LVM+MongoDB. Dropping in speed of backup creation

Till recent time we have been making mongo backups archiving LVM snapshot on hidden SECONDARY server with RAID10 on SAS disks. Currently operation on making snapshot from volume with 500 Gb of data ...
2
votes
1answer
105 views

Remove a secondary from a mongo replica set without triggering re-election?

I had to add a new secondary node to my replica set yesterday so that I could do maintenance on another secondary node. Now that the maintenance is complete, I'd like to remove one of the secondaries ...
2
votes
2answers
595 views

Install mongodb as a service on Windows 8 [closed]

I am trying to install mongodb as a service on Windows 8. I am using the following command to install Mongodb. C:\mongodb\bin\mongod.exe --auth --config C:\mongodb\mongod.cfg --install And I am ...
2
votes
1answer
202 views

MongoDB CPU usage in top is confusing

I have an Ubuntu 12.04 VM running in VirtualBox that has a whole MongoDB cluster on it (4 data nodes, one config node, and a mongos router). When I look at "top", I see that each of those processes ...
0
votes
1answer
193 views

MongoDB default port change

I want to change the default port of MongoDB in Ubuntu 12.04 for security purposes. How can I achieve this?
-1
votes
2answers
163 views

Fresh MongoDB Using 100MB of Virtual Memory? [closed]

I'm having a problem with virtual memory usage using MongoDB on a server. NOTE: I have only a local user account without root privs. The server's VM limit (from ulimit -v) is 120MB. With an empty ...
0
votes
3answers
439 views

MongoDB: two nodes & primary election

According to Mongo documentation in order to safely deploy a replication set, you need at least two active and one arbiter because election of the a primary needs the majorities of the votes. Let's ...
0
votes
1answer
480 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 ...
0
votes
3answers
498 views

EC2 servers are slower than local machine

We have been trying to do some performance benchmarking for our webapp written using python that uses mongodb heavily and we have found the following. We tried using 1st Gen Extra Large ec2 servers ...
0
votes
2answers
607 views

Mongodb keeps reporting “no primary found”, but shell works fine

I have a simple mongodb setup in a replicaset, with 1 actual instance and 1 arbiter (to avoid conflicts). This is in anticipation of expanding the replicaset to include more instances as our load ...
1
vote
4answers
54 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?
4
votes
1answer
125 views

mongo and app server cpu

The beginning: We are using uwsgi and I decided to switch our configuration to use more workers/processes. Why: We have been seeing a traffic increase lately and in my tests with apache benchmark, ...
1
vote
1answer
953 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 ...
2
votes
1answer
361 views

PostgreSQL and Mongodb in production

We have a product that uses Postgres for RDBMSish data (accounts, billing, etc.) and MongoDB for each of the accounts data (which obviously can't be maintained on Postgres). In local development we ...
0
votes
1answer
101 views

EC2 and Mongo, best practices

When hosting web applications with EC2 is it best practice to use a separate EC2 instance for the database (mongo in this case) or is it ok just to keep the web server and database server on the same ...
1
vote
2answers
61 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 ...
0
votes
1answer
251 views

MongoDB Master and Slave - Windows or Linux [closed]

I have recently moved my MS Sql Server DB to MongoDB (2.0) on Windows Server 2008. Its containing 2 databases with following stats. (both databases get around 100 reads/writes per second). These ...
2
votes
2answers
605 views

MongoDB replicaSet failover incurs 1000x query response time increase

I'm testing a production MongoDB replica set failover. When I manually fail one of the instances I see an approx. 1000x (one thousand x) decrease in response times of my PHP queries. I'm on the ...
3
votes
1answer
4k views

How can I tell if NUMA is enabled on a MongoDB server?

Our mongodb process is consistently using >100% of our CPU (this is on an Ubuntu 64-bit server on Linode) and we're casting about for performance improvements. One suggestion we found was that ...
1
vote
1answer
291 views

Quickest/best way to copy a portion of a large mongo database to another server?

I have a dataset of 100m tweets stored in Mongo, unoptimized and unindexed. I need to copy all tweets from the last month onto another server, what is the best way to do this? My idea was to use a ...
2
votes
2answers
2k views

MongoDB server crashed, showing the following error

I have a MongoDB instance running in a VMWare VM with Ubuntu Server 12.04. Suddenly the server crashed, and when I try to reinitiate it I get the following error: jonathanong@ubuntu:~/mongodb/solo$ ...
4
votes
1answer
243 views

MongoDB Disaster Prep on AWS

I'm looking for best practice advice covering MongoDB disaster recovery within an AWS hosted environment. Our setup is fairly standard at this point, replica set of 3 servers (1 primary, 1 secondary, ...
0
votes
2answers
39 views

starting mongodb outside of path

I've just installed mongodb, and had to install 2.0.4, which I couldn't figure out how to do with 10gen, so followed this tutorial and installed from the tar file. ...
1
vote
1answer
115 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 ...