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

Restore mongoDB by --repair and WiredTiger

We accidentally deleted the directory rm -rf /data/db which was our MongoDB path, and thanks to extundelete, we recovered it and got the directory /data/db. Here are our files in the directory, and the files was generated under MongoDB version…
SoftTimur
  • 337
  • 2
  • 8
  • 16
4
votes
1 answer

How to expose and access MongoDb ports in Kubernetes?

I have mongoDB deployed on Kubernetes. The Database is setup properly and can be accessed using its internal dns name. I need to expose this to the outside world. I have used node port/ loadbalancer to expose port 27017, but I cannot connect to the…
jdoe
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Mongodb doesn't start using systemctl

When I try to start the mongo service(systemctl start mongodb) I get this error in journalctl: Mar 21 15:36:18 redhat7 systemd[1]: Started High-performance, schema-free document-oriented database. Mar 21 15:36:18 redhat7 systemd[1]: Starting…
Telen Stanley
  • 155
  • 1
  • 2
  • 7
4
votes
1 answer

Single SSD on a mongodb node

we are getting started with a mongo cluster. The best practices docs mention that the ideal storage capacity per node is ~5TB. Given we can get ~4TB from a single SSD, we are planning to go with it instead of HDD. Is there any gotchas that we need…
Dan
  • 51
  • 3
4
votes
1 answer

Debugging Node.js disk I/O and CPU spikes

I'm running a Node/Meteor/Mongo app on Ubuntu (on a Digital Ocean 1GB droplet), and I've been seeing some weird disk I/O spikes, which are then followed by CPU spikes: I was wondering: If that pattern corresponds to any known problem? What tools…
Sacha
  • 141
  • 2
4
votes
1 answer

MongoDB sharding: mongos and config servers together?

We want to create a MongoDB shard (v. 2.4). The official documentation recommends to have 3 config servers. However, the policies of our company won't allow us to get 3 extra servers for this purpose. Since we have already 3 application servers (1…
4
votes
1 answer

How to display MongoDB stats in Graphite?

After googling for 2 days with no solution I would like to know if anyone uses Graphite with either CollectD or StatsD to include MongoDB statistics in a dashboard. I was hoping for an up-to-date plugin to use with CollectD, but I only found an…
Stephan
  • 417
  • 1
  • 5
  • 13
4
votes
1 answer

How to get MongoDB server local time?

I'm running a mongodb with authentication. I would like a non-root client to get server time. I thought easiest would be to use serverStatus. But default readWrite user does not have such privilege. I'm really lost in mongo security model. I tried…
akostadinov
  • 1,178
  • 1
  • 9
  • 18
4
votes
2 answers

MongoDB Auth, can be authenticated in the shell but not via the command line

I have an application that connects to a MongoDB database called discussions. I've created a user Mongo shell: > use discussions switched to db discussions > db.auth("discussions","XXXXXXXXX") 1 > show users { "_id" :…
monksy
  • 357
  • 1
  • 3
  • 14
4
votes
1 answer

keepalived: 2nd VRRP_Script never seems to run

I'm trying to implement keepalived on 3 mongodb boxes, the idea is that if mongod on one of the boxes goes down or we need to move the primary node to another system for some reason our application doesn't need to be reconfigured. The…
grahamjgreen
  • 951
  • 2
  • 8
  • 12
4
votes
1 answer

mongo as service error: Cannot determine state of server

I am trying to use mongodb as a service and started with heroku services ie dashboard.heroku.com/apps/scaleqamongo/resources. I tried multiple addons which they call like mongolab, mongohq. I create databases and then try to add that service…
raju
  • 267
  • 2
  • 3
  • 9
4
votes
1 answer

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 http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen'…
user125862
  • 169
  • 1
  • 5
4
votes
1 answer

How to calculate the required EBS PIOPS for our mongo server?

We want to use provisioned IOPS EBS volume on our mongo machines, I'm a bit confused on how to calculate the number of provisioned IOPS to use. Currently we're getting an average of 25 IOPS (read + write) per volume (we use 4 EBS volumes combined),…
Nimrod Gutman
  • 143
  • 1
  • 5
4
votes
1 answer

MongoDB Sharding Config and MongoS Storage

In doing this year's budgeting, I need to estimate the capacity needs for next year. We are planning on needing to shard our MongoDB Replica Set out to 4-shards, but I have the disk capacity needs for that planned. The overall data set size is…
gWaldo
  • 11,957
  • 8
  • 42
  • 69
4
votes
1 answer

Can I use MongoDB with Amazon EC2 small instance?

I want to move my MongoDB from a virtual server to amazon web services. I know MongoDB provides a preconfigured AMI, with three provisioned EBS volumes. But this is only available for m1.large instances and higher. But I need only small or medium…