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
3
votes
0 answers

mongo clients fail about 25% of the time with "message ... is too large"

I am trying to use haproxy in tcp mode in front of a mongo server. On the haproxy machine I have a mongo client to test with. When connecting from the haproxy machine directly to the mongo server it works 100% When I connect from the haproxy…
3
votes
1 answer

Why am I getting different SHA-1 checksums for tar of identical mongodump backups?

I am trying to backup my MongoDB database and check for changes with a SHA-1 checksum. The problem is that the checksum is not the same. $ mongodump --quiet --db backup --out . $ tar -cf backup1.tar backup $ rm -r backup $ sha1sum…
Dawei67
  • 63
  • 4
3
votes
1 answer

Enabling WiredTiger engine in MongoDB 3

I've problem with enabling WiredTiger engine by setings in mongod.conf I'm using Centos 7, and this is my config #/etc/mongod.conf storage: wiredTiger: engineConfig: cacheSizeGB: 2 collectionConfig: …
B14D3
  • 5,188
  • 15
  • 64
  • 83
3
votes
2 answers

Monitoring MongoDB 3 using StackDriver in GCE

Has anyone successfully managed to monitor a MongoDB 3 cluster (or standalone db) with StackDriver in GCE ? I've setup a MongoDB 3.0.6 cluster in GCE (replica set with 2 replica and 1 arbiter) I'm trying to monitor it through StackDriver provided by…
3
votes
1 answer

Upgrading MongoDB 2.x replica set to 3.x

I have a MongoDB replica set consisting of two database nodes and one arbiter. I want to upgrade the replica set by launching new, larger instances (Google compute engine), installing MongoDB 3, then adding these to the existing 2.6 replica set,…
3
votes
2 answers

Full data backup to Amazon S3

I have an Ubuntu server hosted on Digital Ocean that has outgrown it's existing backup solution. The relevant parts of the stack I use are Node.js, MongoDB, and Elasticsearch. So far backups have been done by dumping the entire MongoDB database,…
A.M.K
  • 163
  • 1
  • 9
3
votes
3 answers

MongoDB WiredTiger storage not using two CPU cores

As claimed in WiredTiger storage engine description, it provides an ability of better concurrency due to document-level locking. From this post: WiredTiger scales on modern, multi-CPU architectures. Using a variety of programming techniques such as…
artch
  • 81
  • 1
  • 4
3
votes
1 answer

When and how should we shard MongoDB when we are bound to physical machines?

We maintain a search service that serves data from MongoDB. Our Mongo production instance is arranged in a 4 node replica set across four physical servers. The database is comprised of several small collections and one large collection. The large…
Chris M
  • 31
  • 1
  • 4
3
votes
1 answer

How can I decrypt ssl encrypted mongo wire protocol for inspection when I have ownership of all certificates involved?

I have a standard MongoDB SSL environment where the mongo wire protocol is encrypted with SSL/TLS using RSA keys. I have packet captures of communication between the MongoDB server and a client taken via tcpdump. I have ownership of the certificates…
Wesley
  • 32,690
  • 9
  • 82
  • 117
3
votes
1 answer

MongoDB: insert operation fails but disk is free

I've seen the strange behavior of my server and first of all I looked at log file /var/log/mongodb/mongodb.log. There I saw the next lines: Wed Jan 7 16:33:31 [FileAllocator] allocating new datafile /var/lib/mongodb/salesg_call_log.1, filling with…
3
votes
1 answer

mongorestore with indexing in foreground

I need to restore huge dump taken with mongodump utility. As the collections are big and mongorestore rebuilds indexes in backround, index building takes very long to finish. What I want is to somehow make mongorestore to build indexes in foreground…
Abhay PS
  • 151
  • 2
  • 7
3
votes
2 answers

Mongodb: The paging file is too small ... v2.6.4 on Win2012

We had this a couple weeks ago, and mongo would not restart. We have 30GB RAM. The paging file had originally ben 4gb. When we first hit this a couple weeks ago, we incrased the paging file to 12GB min/25GB max. Then a few days ago.... the server…
Jonesome Reinstate Monica
  • 5,445
  • 10
  • 56
  • 82
3
votes
1 answer

mongodb keep looping while trying to sync data

I'm converting my my standalone mongodb into a replica set. I've added one more member (and I want to add two more members later, and to shutdown the primary server). My primary mongodb is running 2.2.3, and the new replica member running the latest…
Dor
  • 43
  • 5
3
votes
1 answer

Mongodb error - Out of file descriptors. Waiting one second before trying to accept more connections

Details Here is what I see in the logs file 2014-09-08T10:22:43.143+0000 [initandlisten] ERROR: Out of file descriptors. Waiting one second before trying to accept more connections. 2014-09-08T10:22:43.360+0000 [conn9206] Assertion: 12520:new file…
abipc87
  • 133
  • 1
  • 4
3
votes
2 answers

How to construct a MongoDB Health Check in HAProxy?

There is a fastcgi example of a binary health check on the HAProxy blog. How would I construct a similar check for MongoDB such that I am doing a more robust health check for MongoDB - one that verifies that the server is actually there and…
Adam C
  • 5,222
  • 2
  • 30
  • 52