Questions tagged [mongodb]

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

MongoDB is a document oriented database. It's coded to be fast, scalable and supports natively solutions like sharding, replication, Map/Reduce and storage of files on the DB.

MongoDB doesn't uses SQL, making it a NoSQL database, its data is retrieved using a dynamic query system and returns JSon-style data.

889 questions
5
votes
2 answers

Can't config replica set using MongoDB 3

I'm trying to create a replica set in MongoDB version 3.04. I followed this tutorial and getting the next error while trying to add nodes using the primary server: vacrep:PRIMARY> rs.add('server address here') { "ok" : 0, "errmsg" : "Quorum…
Ofir
  • 181
  • 1
  • 1
  • 6
5
votes
0 answers

Corrupt WiredTiger MongoDB files

I'm running MongoDB with the WiredTiger engine on an ext4 file system. The last thing that I did was start building an index, but then something came up and I needed to cancel the index build and restart the machine. I did this by hitting Ctrl+C in…
Hut8
  • 173
  • 1
  • 5
5
votes
1 answer

MongoDB Oplog Security

We are using a MongoDB replica set for sharing sessions and other (potentially sensitive) data in a web farm. All the data we store uses TTL indexes to expire documents after a relatively short period of time (say an hour) partly for security…
5
votes
2 answers

Readahead for /var/lib/mongo is set to 4096KB

I'm trying to set the readahead for mongo 256 or less as recommended, I looked at the documentation for any guidance and I found this: Ensure that readahead settings for the block devices that store the database files are appropriate. For random…
pedrommuller
  • 279
  • 5
  • 14
5
votes
5 answers

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 writes into DB every 30s, and no disk activity in…
Alex F
  • 859
  • 1
  • 10
  • 17
5
votes
2 answers

Should I disable turn off MongoDB profiler in production machine?

The default according to [1] is collect profile data when execution time > 100ms But one of the issue is when majority of queries' execution time > 100ms, our system start to overload and I am not sure if the profiler make our system even more…
Ryan
  • 5,831
  • 24
  • 72
  • 91
5
votes
1 answer

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 environment. I've read that it is not recommended…
Banjer
  • 3,974
  • 12
  • 41
  • 47
5
votes
2 answers

mongod fork vs nohup

I'm currently writing process management software. One package we use is mongo. Is there any difference between launching mongo with mongod --fork --logpath=/my/path/mongo.log --logappend and nohup mongod >> /my/path/mongo.log 2>&1 < /dev/null…
5
votes
2 answers

Should I install MongoDB using Ubuntu's repository or MongoDB's private repository?

I was reading the MongoDB install instructions and noticed they have a private repository that the instructions tell you to add. I'm wondering if this is really needed because MongoDB is also in the Ubuntu repository (Ubuntu 12.04). I was thinking…
Sean Bannister
  • 751
  • 8
  • 19
5
votes
1 answer

MongoDB virtual memory usage

I'm testing MongoDB for archives data. We have a collection with 160M rows. MongoDB instance takes 76.2 Gb virtual memory on a 12 Gb physical memory box ;-) The swap in null. I read that virtual memory = physical + swap. What's wrong in my case ? It…
hotips
  • 533
  • 4
  • 8
  • 19
5
votes
1 answer

Upgrading a mongo cluster

I am looking at adopting a Mongo cluster and am doing research. We hope to have a cluster that can scale from 10k updates per second to 100k updates per second with very write heavy traffic. The primary question is, If we wanted to move to a newer…
EnabrenTane
  • 255
  • 1
  • 2
  • 7
5
votes
1 answer

Sharding MongoDB internationally with data stored based on location

We're looking to set up data centers globally and switch to a NoSQL database like MongoDB to support having our data distributed over these data centers (and as a pleasant side effect, introduce more redundancy, failover etc). However, the reason…
tzar
  • 153
  • 3
5
votes
2 answers

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 SSH and run that again to get it going (not that…
James Simpson
  • 1,651
  • 2
  • 15
  • 31
5
votes
1 answer

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 cluster, but recently when I attempt a chunk move I…
Bryan
  • 245
  • 2
  • 7
5
votes
2 answers

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. http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages. I would expect it…
Tim Fountain
  • 53
  • 1
  • 8