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

learn more… | top users | synonyms (1)

0
votes
1answer
103 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
295 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
656 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
318 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
275 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
125 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 ...
6
votes
2answers
2k views

Does a MongoDB replica set require at least 2 or 3 members?

Documentation here says three: http://docs.mongodb.org/manual/tutorial/deploy-replica-set/ "A replica set requires three distinct systems..." Whereas the documentation here says two: ...
2
votes
1answer
222 views

MongoDB ReplicaSet slow read performance

I successfully basic configure my replica set, but i noticed slow read performance. I have 2 mongo servers and 1 arbiter in my replica set. All are running on Centos 6.3 minimal setup (just ...
4
votes
1answer
3k views

mongoexport csv output array values

I'm using mongoexport to export some collections into CSV files, however when I try to target fields which are members of an array I cannot get it to export correctly. command I'm using: ...
0
votes
1answer
120 views

mongodb segmentation fault(11) macosx

I have problem, i cant figure out, how to fix.. So i am on MacOSX machine, running php 5.3.15 version, using mongo 1.3.1 version. When i try to execute php script, in which i try to connect to remote ...
4
votes
1answer
376 views

MongoDB Replica-Set with Replication Lag on one node only

we experience a strange behaviour in our MongoDB Replica-Set, setup of 3 Nodes (all Xeon Quad-Core-Class CPUs, 16GB of RAM for one, 24GB for the other two nodes) The one node with less RAM is normal ...
1
vote
3answers
200 views

Amazon EC2 High-Memory Extra Large Instance [closed]

I am new to Mongodb and EC2. If I use following single MongoDb server : High-Memory Extra Large Instance 17.1 GiB memory, 6.5 ECU (2 virtual cores with 3.25 EC2 Compute Units each), 420 GB of local ...
1
vote
1answer
81 views

Is it possible to run multiple mongod instances on a single set of database files

We have large multi-gigabyte data sets on which we run very complex queries, for example { $or: [ { id: 30000001, ... }, { id: 30000005, ... }, ..., { id: 30001005, ... } ] } It seems that CPU is ...
1
vote
1answer
812 views

Setting up mongodb via upstart - how to pass options?

I installed MongoDB in an Ubuntu Server VM inside VMware using these instructions: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/. Everything works fine, and I can access MongoDB ...
1
vote
1answer
452 views

MongoDB Replica Set, initiate() need to login error

I am trying to setup a replica set, but when I issue: rs.initiate() On the first server, I get the following error: { "errmsg" : "need to login", "ok" : 0 } That is strange though, because in my ...
1
vote
2answers
345 views

Low priority batch processes on live Mongo database

We want to run MapReduces on our live Mongo database, mainly so that we can extract metrics. However, we've had some bad outages caused by these MRs bogging down the Mongo server (in particular 100% ...
0
votes
1answer
1k views

How do I upgrade mongodb 1.8 to 2.2 on ubuntu?

Following this guide: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ I ended up with mongodb 18 on my Ubuntu 10.04. I've just read the 2.2 mongodb release notes on upgrading and ...
2
votes
1answer
2k views

High CPU usage on mongodb server when idle?

I am getting strange usage numbers on MongoDB server when it is in almost idle state: http://pastebin.com/cKVyGMts (no queries) DB size is about 3.3 Gb I can see in mongodb.log that snapshotthread is ...
1
vote
1answer
47 views

Is this normal or due to bug in mongodb?

I am new to mongodb and i installed it on xen para virtual vm and when given command "mongo" terminal freezed and on the top output command mongo is taking almost 100% CPU. Is this a bug,or does ...
-2
votes
1answer
226 views

MongoDB Crashed,Not able to start it again [closed]

Mongodb fail to start after showing this error...and not able to start it again..?Can u help me find out? *** glibc detected *** /usr/lib/mongodb/mongo: corrupted double-linked list: ...
5
votes
1answer
935 views

Multiple MongoDB instances on same server

We set up a MongoDB development server on CentOS 6.3 and were able to separate different projects by using separate config files and rc scripts. Now we're looking at setting up a MongoDB production ...
1
vote
1answer
29 views

Understanding mongod log entries

Can anyone explain the numbers in the % column, in this mongod log snippet ? It is building a new index but I'm not sure I understand why the numbers look like that Tue Nov 20 11:38:08 ...
1
vote
1answer
295 views

How to install 64bit version of Mongodb

How can I install the 64bit (x86_64) version of MongoDB? I've specified in the 10gen.repo the 64bit: baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 But when I run: yum install ...
1
vote
1answer
670 views

How to set Mongodb

I'm trying to set up Mongodb on my vps but when trying to start it: service mongod start It returns this error: Starting mongod: /usr/bin/mongod: error while loading shared libraries: ...
0
votes
3answers
739 views

Is it possible to upgrade Ubuntu 10.04 32bit to 64bit with out reinstall OS?

My VPS server is running Ubuntu 10.04 32bit now, but I have to upgrade my OS to 64bit because of the 32-bit limitation of mongoDB. But if i reinstall the system, there are a lot of programs need to ...
3
votes
1answer
548 views

Rails/Mongo across multiple different geo-regions

I have a system that by necessity requires physical presence in three or more different locations and I need advice on structuring in such a way that my database stays replicated in a timely manner ...
3
votes
2answers
496 views

Is rest=true a must for MongoDB's replicaSet setup?

I see there are a lot of tutoirl on the internet suggest to add the rest parameter mongod --rest --replSet myset Are there any side effect if I don't use them?
1
vote
2answers
158 views

Mongo Scripting the shell

On my production stack, I have a front-end server and a Mongo server. I would like to be able to set a cron job on the front-end server to create some logs daily. I wrote a script that does this: ...
2
votes
1answer
273 views

Mongodb Slave replication lag

We using standard mongo setup: 2 replicas + 1 arbiter. Both replica servers use same AWS m1.medium with RAID10 EBS. We experiencing constantly growing replication lag on secondary replica. I ...
2
votes
1answer
96 views

MongoDB PHP EC2 Setup Configuration

I am new to web development and server set up. I am looking for some advice or a link to a tutorial on setting up a production system up. Right now, I have a server (Ubuntu, Apache, MongoDB, and ...
2
votes
3answers
219 views

Drop in solution for logging to DB

I'm considering setting up our servers to log to a Mongo Database rather than log files. Logs will then be all on one server, queryable, and overall easier to manage. I'd love to find a solution that ...
0
votes
1answer
274 views

How to upgrade a single instance's size without downtime

I'm afraid there may not be a way to do this since we're not load balancing, but I'd like to know if there is any way to upgrade an EC2 EBS backed instance to a larger size without downtime. First of ...
0
votes
3answers
164 views

How to choose NoSQL database engine?

We have a database with following specs: 30k records, 7mb in size 20 inserts/second 1000 updates/second 1000 range selects/second, by secondary index, approx 10 rows each needs at least one ...
3
votes
1answer
1k views

Is it possible to recover MongoDB databases from .ns and .0, .1, . … files?

I have a MongoDB 2.0.4 installation on Ubuntu 12.10. Recently I had some problems connecting to the database from the outside, and figured out there was something which prevented MongoDB from starting ...
2
votes
2answers
740 views

what is best multi-server configuration with OpenVPN

We have a number of Database severs running MongoDB on Debian plus a number of Application servers also on Debian. The db servers hold replicating db clusters, so they need to talk to each other. ...
2
votes
1answer
358 views

Error while compiling PHP extension

Im trying to install a php extension that is written in c and make use of mongodb c driver. I have been trying for the last 2 days to compile and install the extension however im getting the same ...
3
votes
1answer
1k views

How do I network this Windows Failover Cluster and MongoDB Replica Set? (diagram inside)

As you can see, my two Windows Server Failover Cluster (WSFC) nodes have three network interfaces each, which connects them to three different networks : A public network A private network ...
2
votes
3answers
309 views

Varnish Cache logging to MongoDB

I want to stream Varnish's log into MongoDB for realtime reporting. Can this be configured directly within Varnish or can the official Varnish-Agent (https://github.com/varnish/varnish-agent) be used ...
0
votes
1answer
92 views

replica set with multiple primary nodes

I am trying to configure a replica set with three nodes: node A, B and C. I execute the rs.add()'s from node A and after that rs.status() shows that the three nodes are PRIMARY. Moreover node B and C ...
2
votes
1answer
276 views

Using mongodump with an auth enabled mongodb server

I'm trying to do a daily backup of my mongodb server (auth enabled) using the mongodump tool. mongodump provides two parameters to set the credentials: -u [ --username ] arg username -p [ ...
5
votes
2answers
4k views

SocketException in Mongo logs

We are running mongo for 4 months so far , But lately I am seeing a lot of SocketException handling request, closing client connection: 9001 socket exception [2] server [127.0.0.1:58996] How can I ...
2
votes
1answer
832 views

non-mapped virtual memory & total number of connections

We have two MongoDB data nodes (replica set) - Primary & Secondary. I noticed that the non-mapped virtual memory is relatively high and wondering if they are hurting our MongoDB performance (The ...
1
vote
1answer
191 views

Thread-Safe or Non-Thread-Safe PHP Extension for Windows? [closed]

I am wanting to install the MongoDB PHP extension for Windows for my Dev server to play around with it. Looking at the PHP manual ...
3
votes
1answer
1k views

How to get the MongoDB' current working set size

From the doc , it said "For best performance, the majority of your active set should fit in RAM." So for example, my db.stats() give me { "db" : "mydb", "collections" : 16, "objects" : 21452, ...
2
votes
1answer
207 views

Disk / system configuration for log collection / syslog server

I am looking into building a syslog / logging infrastructure and am pondering about some architecture best practices. Essentially, I see that a syslog system needs to support two conflicting ...
0
votes
1answer
183 views

Large, high performance object or key/value store for HTTP serving on Linux

I have a service that serves images to end users at a very high rate using plain HTTP. The images vary between 4 and 64kbytes, and there are 1.300.000.000 of them in total. The dataset is about 30TiB ...