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

learn more… | top users | synonyms (1)

10
votes
2answers
3k 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
1k views

how to connect to mongodb server via ssh tunnel

It was easy for me to connect to my remote mysql server on AWS using a sequelpro, however I'm struggling with doing the same thing with mongodb. I tried setting up an ssh tunnel via command line ...
0
votes
0answers
85 views

mongodb replication with admin authentication

I have three nodes of mongodb replication set 2 servers have the data and the third is an arbiter 54.83.20.44 : 27017 (primary) 54.197.243.55 : 40000 (secondary) 23.21.148.73 : ...
0
votes
1answer
52 views

Using Replication for Migration on MongoDB

I'm interesting in using replica set feature on Mongo as a method for smoothly migrating between machines. My Mongo database is currently a standalone instance. I realize the recommended practice is ...
1
vote
1answer
1k views

installing mongodb on 14.04

I was trying to install mongodb into a fairly clean Ubuntu 14.04. I used the following commands: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb ...
2
votes
3answers
658 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
1answer
62 views

mongodb on aws 2 region replication

I think I already have the answer, but I'm a developer so thought I'd check here first. There are AWS regions with more than 2 zone, but some with only 2. E.g. Sydney. Now if I were to deploy a ...
1
vote
0answers
33 views

Migrate standalone Mongo DBs to sharded/replicated cluster

Currently I have several independent standalone Mongo servers. I have Now set up a sharded and replicated Mongo cluster. I plan to copy over all databases from the standalone Mongo servers to the ...
1
vote
1answer
188 views

trying to install mongo but getting errors

I am following mongo site (http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/ ) to install mongo on my centos 5.1o I am getting following errors sudo yum ...
1
vote
0answers
52 views

using cas server with mongodb backend

I 'm new to setting up cas(Central Authentication Service) server. I couldn't find any guides to setup mongodb as backend for CAS server. Is there an adapter to connect CAS and mongodb. BTW, we don't ...
1
vote
1answer
182 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 ...
1
vote
1answer
310 views

Incremental backup mongodb using rsync

I want to store small files (60 kb, couple of millions) into MongoDB, I was thinking using GridFS, but it seems BSON will do. Anyway, I want to make rsync to backup the mongodb chunk files, so ...
0
votes
1answer
43 views

Do I need to manually promote a replication node to Primary after a Primary node failure?

I have a basic 3 member MongoDB replication set. 1 x Primary 2 x Secondary A = Primary B = Secondary C = Secondary The Mongod service on the Primary stopped, and as expected, one of the Secondaries ...
2
votes
2answers
534 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 ...
0
votes
1answer
106 views

mongoose/mongodb DoS-ing a nodeJS instance [closed]

We have a nodeJS instance inside a AWS VPC that makes a request to a mongodb instance running in another availability zone. The node instance is hit with a particular request a lot. That request is ...
1
vote
3answers
658 views

Copy mongodb collection between two servers AND different mongo versions …

I have a collection in a mongoDB, on a project that runs locally, and have to copy the collection to the dev server. Can you tell me how to do this, considering that: The local machine (the source) ...
2
votes
1answer
111 views

MongoDB 100% locked periodically. MMS charts attached

Trying to diagnose what could be causing intermittent lock-up on MongoDB server running behind a Rails application. Hoping that someone might recognise the pattern of peaks and troughs in the charts ...
0
votes
2answers
232 views

Did my mongoDB server crash because the database is too large?

I've had no problems with my Mongo set up for a couple of years until it shutdown unexpectedly yesterday. I found no error in the logs from around the time it stopped. It seems like a neat ...
0
votes
1answer
92 views

Backup MongoDB database copying files in `dbpath`?

I need a daily backup of all MongoDB databases in our single-instance server (without stopping the MongoDB service). Our server is in Rackspace so I'm wondering if a valid strategy could be just add ...
1
vote
0answers
122 views

Can't load Mongo extension in php.ini

I'm having some issues while try to load mongo.so extension at php.ini. Below is what I tried: Compile the mongo extension by following the documentation at php.net for MongoDB site. This resumed ...
1
vote
0answers
496 views

how to integrate between MONGODB & SOLR, using MONGO-CONNECTOR

Like this I started my mongod with replSet mod mongod --dbpath=/home/local/ASSYST-COC/so/mongo --replSet myrep --auth mongo started mongo -u root -p root --authenticationDatabase admin IN ...
0
votes
2answers
933 views

Apache fails to start after PHP upgrade on CentOS 6.5 x64

I have a developer server with CentOS 6.5 and PHP 5.5.11 (latest from REMI repos). Today I did: yum --enablerepo=remi,remi-php55 update That updated Apache and some other libraries like Mongo for ...
2
votes
1answer
197 views

iptables blocking local connection to mongodb

I have a VM (Ubuntu 12.04.4 LTS) with mongodb (2.0.4) that I want to restrict with iptables to only accepting SSH (in/out) and nothing else. This is how my setup script looks like to setup the rules: ...
4
votes
4answers
7k 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 ...
2
votes
1answer
120 views

How to find/kill long running mongo scripts

I think I have a long running mongo script tanking my database, but I'm not sure. I was connected to the linux server via SSH and I ran the script like so: mongo my_database my_script.js It started ...
2
votes
1answer
100 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 ...
0
votes
0answers
90 views

Puppet MongoDb enabling authentication and defining password

I'm working on enabling authentication using the puppetlabs mongodb module. As the docs say, to enable authentication, I should add auth => true. But in order for authentication to work, I have to ...
1
vote
1answer
430 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
177 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
35 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
81 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
83 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
98 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
82 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
219 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 ...
0
votes
1answer
43 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) ...
1
vote
1answer
202 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
201 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 ...
0
votes
1answer
145 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. ...
3
votes
1answer
1k 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
144 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
177 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
25 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
242 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
49 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
133 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 ...
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
26 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. ...
0
votes
1answer
432 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 ...
2
votes
2answers
207 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 ...