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

learn more… | top users | synonyms (1)

1
vote
1answer
729 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 ...
0
votes
1answer
270 views

For MongoDB, can anyone share experience with using safe writes or a very short syncdelay and how that affected peformance?

Im building a real-time *(5 second latency) analytics server. During load testing with ~600 concurrent connections I've noticed severe discrepancies between the number of known test documents and the ...
3
votes
2answers
2k views

I need nodejs and mongodb to handle 5000 requests per second

As the title suggested, I need nodejs and mongodb to handle 5000 requests per second. Right off the bat that is. We'll grow to many times that eventually. My initial thoughts are to put each on ...
2
votes
2answers
491 views

Potential problems running MongoDB on OpenSolaris & ZFS?

I've been using MongoDB on CentOS with ext4 for a few months now with no problems. I'm potentially going to be moving to Joyentcloud, and their SmartOS is based off of OpenSolaris and uses ZFS. I'm ...
0
votes
3answers
107 views

Local computer for serving a web app via LAN [duplicate]

Possible Duplicate: How do you do Load Testing and Capacity Planning for Web Sites I'm planning to create a "voting tool" to help votation in a conference of my NGO. My idea would be to ...
1
vote
2answers
1k views

MongoDB with Virtual box replica set setup on Ubuntu 0.8 connection problem

I'm trying to build a mongo replica set on my server, Centos 5.6, that would be setup from 5 VB holding Ubuntu 8.10 and mongodb. The main problem is i can't connect to mongo on virtual box. The ...
6
votes
2answers
4k views

what does locked % in mongostat mean?

When running mongostat to look at our mongo database, I'll frequently see the locked % number jump up, sometimes as high as 80%. Here's a few example rows: insert query update delete getmore ...
1
vote
1answer
659 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
2answers
6k 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
1answer
128 views

How do I troubleshoot apache2 problems?

I apologize if this question is rather basic, but it is seems to be too broad to easily find a solution. I am running apache2 on Ubuntu on a VPS with 768MB of RAM. I am also running MySQL on the same ...
1
vote
1answer
672 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
2answers
3k views

Process running in background got killed in linux

I am having a remote server to which i connect using ssh. I started a process(mongodb) on the server using following command- "/usr/bin/mongod --dbpath /mnt/ebs-300/mongodb --logpath /mnt/ebs-300/log/...
1
vote
2answers
451 views

What are some pro's and con's of virtualizing a MongoDB config server?

We are setting up a new MongoDB cluster for a large web app, and trying to decide what our infrastructure will look like. I am researching whether or not we could virtualize the MongoDB Config server ...
1
vote
1answer
1k views

Can't setup 3 nodes MongoDB recplica set

I just follow instructions in MongoDB document Replica Sets - Basics to setup a 3-node Replica set. Everything goes fine when I do the initiate and add first node in the primary. [foo@host-a ...
2
votes
4answers
2k views

Real-time log parsing and reporting

We have a small project we are working on part-time that runs on Nginx/MongoDB on Ubuntu 10.04 LTS Server. We'd like to be able to see reports on things like server load, requests/sec, response time, ...
11
votes
2answers
7k views

Multiple Mongos on one server

I'm not talking about sharding. We had a testing server (linux) and there is already one mongo which belongs to another project/subteam. Is it possible to run multiple, isolated instances of mongodb ...
1
vote
1answer
286 views

MongoDB cluster reporting gotShardHost errors

We're running a MongoDB cluster up on EC2 and are experiencing the following error over and over again in our log files: Assertion: 10429:setShardVersion failed! { "errmsg" : "exception: ...
1
vote
2answers
3k 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: http://www.mongodb.org/display/DOCS/Amazon+EC2#AmazonEC2-EBSvs....
2
votes
2answers
608 views

Is it possible to use more than one disk for MongoDB data store without RAID?

I'm running MongoDB in a virtualized Linux environment. In this situation, I have multiple physical disks that I can use for the database. However, I'd rather not manage a RAID (mostly because I have ...
2
votes
1answer
610 views

Mongos not using secondary for read in replica/sharding mongo setup

I have a Mongo DB setup of 4 DB (2 shards of 2 replica) and I noticed that the secondary servers of each shard is not being used for read queries. Both secondary servers received all inserts, updates ...
1
vote
1answer
879 views

How to “unshard” an existant collection in mongo?

While setting up some collections in a mongo database to be sharded, I entered the name of one of them wrong (typo letter at the end). When I do db.printShardingStatus(), I see that inexistent ...
3
votes
1answer
279 views

What is the safest way to change MongoDB server structure?

I currently have a MongoDB replica set configured as such: { "_id" : "ahspy_mongo_set", "version" : 13, "members" : [ { "_id" : 0, "...
2
votes
1answer
1k views

mongoDB - Linux Service Startup/Shutdown is Failing (possible unclean shutdown)

Linux administration isn't my thing so I'm a bit over my head here. System information: /proc/version -> Linux version 2.6.18-028stab091.2 /etc/debian_version -> 5.0.8 Whenever the server is ...
2
votes
1answer
325 views

Analytics + download tracking

So I'm in a bit of a sticky situation. I really like Mint, which I'm currently using for my analytics. Google Analytics wasn't cutting it, because I need real time info. Now, I'm outgrowing Mint a ...
0
votes
2answers
297 views

MongoDB Replica Set

I'm kinda new to MongoDB. I've setup a single mongo server on an Amazon m2.xlarge EC2 instance. I've setup a RAID10 with 4 EBS volumes for storage. Seems to work great for collecting data. How do I ...
1
vote
1answer
354 views

Mongo daemon restarts after replica set issue

We had a recent election in our replica set (2 read nodes; 1 write node) that changed the primary node. Curious as to why this occurred, I started looking through the logs to find out what happened. ...
11
votes
3answers
1k views

Is this a valid backup strategy for MongoDB?

I've got a single dedicated server with a MongoDB database of around 10GB. I need to do daily backups, but I can't have downtime with the database. Is it possible to use a replica set on a single disk ...
1
vote
1answer
284 views

My ubuntu server can ping and ssh can connect, but ssh can't do the authuncation and halt

I have two ubuntu server. Each running php-cgi by phpfpm, memcached, mongodb. And these servers are not running in a high load state. After running several days. The server will halt. No service and ...
1
vote
2answers
865 views

running mongodb with openvz

Has anyone had any luck getting mongodb working on openvz? Was looking for some tips, tricks, hacks to get it from running out of memory I am running on centos on media temple and the servers just ...
3
votes
2answers
11k views

How to auto-start MongoDB on CentOS reboot?

How do I setup MongoDB so that it will start back up automatically after a server reboot? This is on CentOS 5.5. I start it with the following command, but if the server reboots, I have to login to ...
2
votes
1answer
152 views

Why can I only access mongodb's GridFS under test database?

I've added a file to mongodb's GridFS using: mongofiles put <the file> Now I can see it by by running the command: db.fs.chunks.find() Only if I'm using the test database, when I use a ...
4
votes
1answer
1k views

MongoDB Socket Exceptions when moving chunks

I have 2 shards in my mongodb db cluster, with 1 mongos server. I have a total of 8 servers, with one replica set having 5 and the other 3. I have a single collection that is sharded across the ...
1
vote
1answer
593 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 ...
3
votes
3answers
1k views

Is it OK to shard mongodb without replica set?

Lets say I have 4 database servers. I want to add them to the "shard" cluster. That's it. No replica set, no nothing. Just 4 servers. If I turn "journaling" on all of them, is it OK?
2
votes
3answers
1k views

Why does my backup script work when I run it, but not when it's run via cron?

This is my script, backup_mongo.sh #!/bin/bash suffix=$(date +%w) rm /home/myuser/backup/mongo-$suffix -rf mkdir /home/myuser/backup/mongo-$suffix mongodump -h$1 -u$2 -p$3 -dmydb -o/home/myuser/...
4
votes
2answers
447 views

MongoDB secondaries not catching up

I have a replica set that I am trying to upgrade the primary to one with more memory and upgraded disk space. So I raided a couple disks together on the new primary, rsync'd the data from a secondary ...
4
votes
2answers
8k views

Why after deleting a 110+ GB collection, my /var/lib/mongodb directory still have same size?

I am having some troubles with MongoDB and space usage. In particular, I once used to have a large collection of about 600 million records totaling 110+ GB on disk. Recently I decided to drop it ...
1
vote
1answer
788 views

MongoDB Java, R2.5.3 - NoSuchMethodError on DBCollection.save(DBObject) in Tomcat6

java.lang.NoSuchMethodError: com.mongodb.DBCollection.save(Lcom/mongodb/DBObject;)V Here is the sample code. Error is on Line 3. 1 BasicDBObject dbo=new BasicDBObject(data); 2 DBCollection coll =...
0
votes
1answer
250 views

Approximately, how many writes can a EC2 large dedicated Mongo server handle?

Let's assume that it was only writes. Each "document" inserted is less than 140 characters. How many writes can this database handle?
0
votes
1answer
164 views

What IP does my web server connect to after I set up replica set in Mongo?

Install Mongo on A. Start the server: $ mongod --rest --replSet myset rs.initiate() on A. Install Mongo on B. Start the server: $ mongod --rest --replSet myset Connect to A and add B to the set: rs....
1
vote
4answers
346 views

Can Mongo be deployed to production on one server?

I don't want to rent another server... But wikipedia says: MongoDB should never be deployed on fewer than two servers[citation needed]: a master and a slave. A master can perform reads and ...
1
vote
1answer
8k views

How can I setup MongoDB with GoDaddy Shared Hosting?

I would like to setup MongoDB with GoDaddy Shared Hosting (Linux). I have already enable SSH access. I can upload, extract, and run MongoDB succesfully outside of the doc root. But, how do I ensure ...
0
votes
3answers
2k views

postfix store emails on mongodb

I need to store the emails received by postfix in mongodb , i red many sites and solution but i didn't find a way to do that. I saw filters and master.cf but i don't know what is the right way to ...
0
votes
1answer
831 views

MongoDB (or CouchDB) on a desktop machine?

If I try to run MongoDB on a desktop-grade machine, what performance should I expect? Let's suppose I'll have a regular SATA drive, something like Core 2 Duo and 4 or 8 GB of RAM. Will it be ...
2
votes
2answers
2k views

How to setup autossh tunnel for MongoDB

Here's my setup - I have two VPS ( linodes ). Linode1 has MongoDB on it. I need to access this MongoDB from Linode2. But, I don't want other users on the private network sneak my data, so I need to ...
1
vote
1answer
723 views

Remote MongoDB server or a local one?

I am on 1GB Linode (VPS) with MongoDB + Apache. MongoDB has 1.5M+ records. Multiple instances of the script , over which the service entirely depends cause 50+ active connections and around 50 ...
1
vote
1answer
3k 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 ...
2
votes
2answers
2k views

How can I reclaim bytes from a nearly full, 850G mongodb partition?

Woke up this morning to find out MongoDB grew to all available disk space for some reason. I cannot repair the db to compact it, as I have no space left. I can't even start postgres to remove an old ...
2
votes
1answer
688 views

MongoDB data files with File System Compression? (Windows Server)

I strongly suspect the answer is "no" but here is the question: Is it OK to have one or more of the Mongodb data files compressed by Windows File System Compression? (With SQL Server, this is a no ...
3
votes
2answers
2k views

MongoDB Sharding on single linux machine

Let's say I wanna have a MongoDB Server with 5 shards on one machine and each shard having replica set of 3 servers. Would that increase performance? What are downsides of this?