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.

879 questions
60
votes
6 answers

How can I run mongod in the background on unix (mac osx)?

I would like to run mongod in the background as an always present sort of thing. What would be the best way to do this? Kind of like the way I can run MySQL on startup and it's just always there running in the background. Maybe it's just some bash…
rmontgomery429
  • 749
  • 1
  • 8
  • 8
45
votes
1 answer

how to install an older version of a pecl package

I have this code $passengerId = new \MongoId(oPassenger->getId()); return $this->createQueryBuilder('Device') ->update() ->multiple(true) ->field('activated')->set(false) …
abbood
  • 1,087
  • 3
  • 13
  • 21
30
votes
5 answers

Turning off atime on a filesystem

I am setting up a mongoDB replica set and one of the first things I am suppose to do is turn off atime on the file system. After researching this a bit, I am not opposed to doing this, but I have to ask, what uses atime? I have searched the…
QWade
  • 877
  • 1
  • 11
  • 17
25
votes
2 answers

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 like so: ssh -fN -l root -i path/to/id_rsa -L…
abbood
  • 1,087
  • 3
  • 13
  • 21
19
votes
2 answers

/etc/security/limits.conf soft nproc limit appears to be ignored

My MongoDB database was running into problems under load, with the following errors spamming the logs: [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable [initandlisten] can't create new thread, closing connection I've…
John M
  • 333
  • 1
  • 3
  • 7
19
votes
6 answers

Mongodb - proper way to rotate logs

Mongo docs say that I can: use -SIGUSR1 signal and get the old log renamed and current switched use logrotate from OS I want the OS's logrotate ability to zip old files and remove oldest, but see no way to tell mongod process to switch current log…
Andrey Regentov
  • 473
  • 1
  • 4
  • 11
19
votes
4 answers

How to reset MongoDB replica set settings

I want to start over the configurations of replica, is it possible? How to reset it? In group people saying to remove the database content, but are there any work around?
Ryan
  • 5,341
  • 21
  • 71
  • 87
16
votes
2 answers

Does a MongoDB replica set require at least 2 or 3 members?

Documentation here says three: http://docs.mongodb.org/manual/tutorial/deploy-replica-set/ "A replica set requires three distinct systems..." Whereas the documentation here says two: http://docs.mongodb.org/manual/core/replication/ "Most replica…
cat pants
  • 2,139
  • 10
  • 33
  • 44
15
votes
1 answer

"Excess arguments." while doing "systemd daemon-reload" during MongoDB configuration

I am following the instruction mentioned in : To install and configure the basic elements for MongoDB in Ubuntu. During "Configure MongoDB username and password", on phase 4 "Step 4 - Enable mongodb authentication" got the error. $ systemd…
Papal
  • 153
  • 1
  • 1
  • 5
14
votes
1 answer

Is it possible to recover MongoDB databases from .ns and .0, .1, . ... files?

I have a MongoDB 2.0.4 installation on Ubuntu 12.10. Recently I had some problems connecting to the database from the outside, and figured out there was something which prevented MongoDB from starting correctly. As suggested on several sources (see…
tunnuz
  • 427
  • 2
  • 5
  • 10
14
votes
4 answers

Why after deleting a 110+ GB collection, my /var/lib/mongodb directory still have same size?

I am having some troubles with MongoDB and space usage. In particular, I once used to have a large collection of about 600 million records totaling 110+ GB on disk. Recently I decided to drop it because the data was outdated, to do so I dropped the…
tunnuz
  • 427
  • 2
  • 5
  • 10
13
votes
3 answers

MongoDB and datasets that don't fit in RAM no matter how hard you shove

This is very system dependent, but chances are near certain we'll scale past some arbitrary cliff and get into Real Trouble. I'm curious what kind of rules-of-thumb exist for a good RAM to Disk-space ratio. We're planning our next round of systems,…
sysadmin1138
  • 131,083
  • 18
  • 173
  • 296
13
votes
8 answers

What hardware makes a good MongoDB Server ? Where to get it?

Suppose you're on dell.com right now and you're buying a server to run your MongoDB database for your small startup. You will have to handle literally tens of thousands of writes and reads per minute (but small objects). Would you go for 2…
12
votes
1 answer

What is the minimum amount of servers for a production mongoDB cluster?

On the mongoDB documentation for a production cluster architecture I read that the minimum amount of servers for a running production mongoDB cluster is 7: Is it possible to share the routers, config servers and shards on the same servers (having 3…
Mat
  • 1,783
  • 4
  • 22
  • 39
12
votes
3 answers

node.js, mongodb, redis, on ubuntu performance degradation in production, RAM is free, CPU 100%

As the question title suggests, I'm having an hard time to figure out what can be improved on my application(or tuned in the os, ubuntu) to achieve an acceptable performance. But first I'll explain the architecture: The front-end server is an 8 core…
Franjanko
  • 276
  • 2
  • 8
1
2 3
58 59