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

learn more… | top users | synonyms (1)

3
votes
2answers
10k 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
141 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
557 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
967 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
979 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 ...
4
votes
2answers
432 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
1answer
6k 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
657 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
246 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: ...
1
vote
4answers
327 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
6k 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
812 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
664 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
2k 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
679 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?
1
vote
1answer
2k views

Can't install mongodb via 10gen.repo on Amazon 64bit AMI

Following the instructions here: http://www.mongodb.org/display/DOCS/CentOS+and+Fedora+Packages Can't really decipher what I should be doing...broke down and just got the linux binary but I want yum ...
3
votes
2answers
1k views

PostgresQL on Amazon EBS volume, realistic performance, or move to something more lightweight?

I'm working on a little research project, currently running as an instance on ec2, and I'm hoping to figure out whether I'm going down the right path. We, like a thousand other people, are making use ...
5
votes
4answers
12k views

How to make a secure MongoDB server?

I'm wanting my website to use MongoDB as it's datastore. I've used MongoDB in my development environment with no worries, but I'm worried about security with a public server. My server is a VPS ...
12
votes
8answers
9k views

What hardware makes a good MongoDB Server ? Where to get it?

Suppose you're on dell.com right now and you're buying a server to run your MongoDB database for your small startup. You will have to handle literally tens of thousands of writes and reads per minute ...
0
votes
2answers
473 views

What server hardware are people using for replicated mongodb servers?

Since mongodb, couchdb are for horizontal scaling and have inbuilt support for replication, what hardware is being used for them ? Specifically looking for hardware for replicable mongodb instances. ...
0
votes
1answer
431 views

wamp and mongodb [closed]

I installed mongodb.I have wamp running(latest version), this comes with sqlbuddy any way to link this with the database? Any other aplication that can offer a visual interface for working with ...
1
vote
2answers
5k views

What is the best cloud technology to use for MongoDB/GridFS database servers [closed]

We are going to launch a service that will require between 1 and 2 GB for file storage per paid user. I am going to use GridFS for storing files. GridFS is a module for MongoDB that allows to store ...
3
votes
2answers
1k views

Upstart multiple instances of service not working

I started playing with MongoDB on Lucid. Now I would like to run a DB and Config server on the same box. They both use the same binary to launch, but with different config files and running on ...
3
votes
2answers
1k views

Mongodb: What does webscale means?

Mongodb is known to be webscale. I tried looking on the internet about what webscale actually means but ends with no luck. So, what does webscale really means? And how is it any different than any ...
5
votes
4answers
13k views

Why are my MongoDB queries really, really slow?

I've inherited a large MongoDB server at work, and have been tasked with figuring out why queries run against it are so slow. The DB contains tons and tons of records (on the order of 10^9) and takes ...
23
votes
5answers
3k views

Turning off atime on a filesystem

I am setting up a mongoDB replica set and one of the first things I am suppose to do is turn off atime on the file system. After researching this a bit, I am not opposed to doing this, but I have to ...
0
votes
1answer
882 views

Mongodb export to SQL tool

Starting with monbodb. Administrators are asking a "classical" db for reporting stuff. Does it exist a tool to export documents to a relational db? Like having a flattening option or the automatic ...
1
vote
4answers
378 views

centos + mongo questions

Where does mongo install on centos? I want to remove some databases and file collections as well as uninstall it all together, can anyone help?
5
votes
2answers
8k views

Unable to start MongoDB on Ubuntu 10.10

I've just installed MongoDB on a fresh Ubuntu 10.10 installation, but I'm having trouble getting it to start (at all). I'm using the latest mongo-stable package via. ...
1
vote
2answers
1k views

Storing Hundreds of Millions of Records

My company will be coming into possession of a dataset consisting of approximately 200-300 million records. The source material is csv and is about 150GB uncompressed. We would need to perform an ...
0
votes
3answers
479 views

MongoDB queries

What are the RAM requirements like between MongoDB and MySQL for the same data set and usage? (i.e. under the exact same scenario, how much RAM will each use)? It is true that MongoDB keeps the full ...
14
votes
4answers
20k views

How can I run mongod in the background on unix (mac osx)?

I would like to run mongod in the background as an always present sort of thing. What would be the best way to do this? Kind of like the way I can run MySQL on startup and it's just always there ...
4
votes
1answer
2k views

Unable to connect to a remote database

I'm playing with MongoDB. I have a good deal of experience with MySQL and was using something called Sequel Pro to connect to remote databases. I'm now trying MongoHub but can't seem to get it to ...
1
vote
2answers
432 views

Issues with MongoDB install on Ubuntu 8.04 LTS

I am installing MongoDB (1.4.1) on Ubuntu (8.04 LTS) and I continuously have a problem where I can be in /usr/local/mongodb/bin and run ./mongo or ./mongod and I am returned "No such file or ...
0
votes
1answer
320 views

directoryperdb issue

I installed MongoDB to run as a Windows Service on Win 7 and everything runs well. However, when I attempt to use the command --directoryperdb, it does not recognize this command. Does anyone know ...