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

learn more… | top users | synonyms (1)

1
vote
1answer
310 views

Rename Mongo Shard

Can I, and if I can, how can I rename a shard in Mongo? Like if I wanted to change the instances of rs0 to rep0 below: mongos> sh.status() --- Sharding Status --- sharding version: { "_id" ...
1
vote
1answer
130 views

Amazon OpsWorks - unable to reference ebs volume in mongo dbpath

I'm deploying mongo with Amazon OpsWorks as described in the Setting Up a MongoDB Replicaset With AWS OpsWorks and the instance fails to start when I specify mounted ebs volume (/data/ebs) in dbpath. ...
1
vote
1answer
306 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
3answers
2k 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) ...
1
vote
1answer
128 views

Starting MongoDB with SystemD by listening to a Socket

I'd like to run MongoDB on my development machine whenever the Port 27017 requested but not before that. I already got parts of the file /usr/lib/systemd/system/mongodb.socket but now I'm stuck what ...
1
vote
1answer
257 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
377 views

Very high disk IO on Mongodb Config servers

Perhaps someone could tell me if this is expected or not (It doesn't seem normal to me)... On all 3 of my config servers I am seeing consistent high disk IO, even when the sharded-cluster has ...
1
vote
1answer
359 views

MongoDB getting OOM killed

we are running a mongodb replicaset on three machines. All three machines have around 16GB but only 255MB Swap. Swappiness is left on it's default value 60. The machines are running CentOS 6.4. The ...
1
vote
1answer
660 views

mongorestore from stdin

On a remote server I have a file which is the mongodump output compressed, let me say a file called mongodb.tar.gz. Inside mongodb.tar.gz there is a directory structure like this: dump/dbname/ ...
1
vote
1answer
134 views

Re-mount EBS vol on EC2 instance

I am new to sysadmin. I am trying to launch a EBS-backed EC2 instance. I did the following based on mongodb docs: sudo mdadm --verbose --create /dev/md0 --level=10 --chunk=256 --raid-devices=1 ...
1
vote
1answer
285 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
544 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 ...
1
vote
1answer
164 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 ...
1
vote
1answer
1k 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 ...
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
808 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
2answers
339 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% ...
1
vote
1answer
273 views

enkive mail archive ldap setup

I am trying to set up mail archiving using enkive with exchange. i have followed the installation of all the prerequisites for enkive. i run enkive with defaults and i get error in the log file Aug ...
1
vote
1answer
345 views

MongoDB: Random Vs Sequential Read Performance

I have a single-instance mongodb with a collection with 3 fields: _id, block_id, payload. Payloads are always 4096 byte binaries _id is an ever-incremented unique integer There is a secondary ...
1
vote
1answer
34 views

Mongo is not account specific

I have mongo running on my system however I can access all my databases/collections from other peoples accounts. Can I secure specific collections? How do I block access to my collections but not cut ...
1
vote
1answer
1k views

Where does gentoo store mongodb.conf? Want to change dbpath location

This may seem like an innocent enough question, but I can't for the life of me figure out where gentoo puts mongodb.conf after installation from portage. The documentation says to look under /etc/, ...
1
vote
1answer
942 views

MongoDB REST interface not listening after update

I replaced the mongodb-10gen install with the Ubuntu package (mongodb-server, mongodb-client and dev). apt-get install mongodb Thereafter, I am now unable to connect to the REST interface, where ...
1
vote
1answer
246 views

MongoDB not replicating properly

I am using mongoDB for my application hosted on 3 amazon instances. I have a got a Primary Node with highest priority (100) and 2 Secondaries with priority 99 and 98. A few days ago I started getting ...
1
vote
1answer
2k views

How to change the default admin username and admin password in RockMongo?

I am using RockMongo admin tool and I can access it usingthe default username admin and admin password settings. I would like to change it however the documentation is a little cryptic. I have even ...
1
vote
1answer
201 views

mongo shell / readline / osx

I would like to get the mongo shell to work with readline under osx lion so it picks up my inputrc and I can get all my funky vim bindings. I tried: scons -j 16 --64 --extralib=readline ...
1
vote
1answer
71 views

AWS use local area IP or public one to network apps?

I have a web server with a separate database server in this case a MongoDB, both are hosted on EC2, but when connecting my webserver to my database server is it best to use the public IP address or ...
1
vote
1answer
502 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
1answer
561 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
3answers
1k 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 ...
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 ...
1
vote
4answers
359 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?
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 ...
1
vote
0answers
26 views

adding mongodb authentication breaks connecting via nodejs

I needed to have external access to my mongodb database, so I have removed the bind_ip from the mongod.conf file, and turned on auth. I then added a root user that can access everything, and tried to ...
1
vote
0answers
22 views

Merge 7 node mongodb (2.4) cluster into one standalone mongo shard

I'm running a 7 node mongodb sharded cluster (version 2.4...). I would like to merge this into a standalone shard with 7 times the disk-space. I've tried to create the single shard instance and ...
1
vote
0answers
24 views

Improve read performance on ext4 on Centos with software raid1? [duplicate]

I'm running a number of MongoDB nodes on dedicated servers running Centos6. Each machine has two SSDs which I have in Raid1 with two logical partitions: # df -h Filesystem Size Used Avail Use% ...
1
vote
2answers
39 views

Creating a second (clone) MongoDB ReplicaSet on same storage volumes

We are upgrading our software which is going to require an update to our MongoDB database. We plan on doing it by making a copy of the existing ReplicaSet with a new name and making our updates to the ...
1
vote
1answer
77 views

MongoDB Mergelist error in Debian 6.0.9

We installed Ubiquiti UniFi 2.4.6 which installs Mongodb 10gen on Debian Squeeze 6.0.9. This was a clean install, with no other packages installed from the base install (other than SSH). I was able ...
1
vote
0answers
76 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
86 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
0answers
136 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
842 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 ...
1
vote
0answers
345 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
234 views

Mongodump segmentation fault when dumping all dbs

I'm running a mongodb(2.0.4) replicaset with one master and two slaves where one is hidden slave for backup. I'm using http://docs.mongodb.org/manual/core/replica-set-architecture-three-members/ When ...
1
vote
1answer
687 views

mongo server does not start on Centos 6.4

I have a mongo server installed and when I try to start it with, always fail. OS: CentOS release 6.4 x86_64 Mongo version: 2.4.8 I have other machines working with the same versión and puppetized ...
1
vote
1answer
84 views

MongoDB Balancer

So I have 2 sharded clusters with 3 servers each.My mongos is running, my config server is running and ive also added test data to 1 of the 2 shard clusters. I am having trouble getting that data to ...
1
vote
1answer
237 views

Changing MongoDB Oplog size

while loading data to mongodb, I keep getting "error RS102 too stale to catch up"... After research I found that my default oplog size for a 32 bit linux machine is too small. I would like it to be ...
1
vote
0answers
266 views

Why mongo pecl module looses its connection after Primary stepDown?

I run an Apache 2.2.22-13 with pecl module "mongo 1.4.4". It connects to a MongoDB 2.4.6 sharded cluster. When a stepDown occurs, the mongo module seems to stay on the mongod node which was the ...
1
vote
1answer
104 views

MongoDB cloneCollection between Azure hosted CentOS servers times out at 2 hours

I'm trying to clone a MongoDB collection from CentOS server A to CentOS server B. Both are running 2.4.6. The copy works great until exaxctly 2 hours, at which point I get a 9001 socket exception: ...
1
vote
1answer
30 views

Query related to production environment

I have configured my production environment with the following details: 1. Three config server 2. Two routers (`mongos`) 3. Two shards of three node replica sets. My question is: I am trying to ...
1
vote
1answer
32 views

Mongodb spamming log

I found that mongod writes [snapshotthread] cpu: elapsed:4000 writelock: 0% continuously. So it one day log now about 2Mb. What does it mean and how to disable this?