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
12
votes
2 answers

Multiple Mongos on one server

I'm not talking about sharding. We had a testing server (linux) and there is already one mongo which belongs to another project/subteam. Is it possible to run multiple, isolated instances of mongodb on one machine? How can I do it?
om-nom-nom
  • 225
  • 1
  • 2
  • 11
12
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…
11
votes
1 answer

How to get the MongoDB' current working set size

From the doc , it said "For best performance, the majority of your active set should fit in RAM." So for example, my db.stats() give me { "db" : "mydb", "collections" : 16, "objects" : 21452, "avgObjSize" : 768.0516501957859, "dataSize" :…
Howard
  • 2,135
  • 13
  • 48
  • 72
11
votes
3 answers

Is this a valid backup strategy for MongoDB?

I've got a single dedicated server with a MongoDB database of around 10GB. I need to do daily backups, but I can't have downtime with the database. Is it possible to use a replica set on a single disk (with 2 instances of mongod running on different…
James Simpson
  • 1,651
  • 2
  • 15
  • 31
10
votes
2 answers

How can I connect to a MongoDB Replica Set behind a proxy?

I have a MongoDB Replica Set on the cloud service. For security reason, the replica set is available to the cloud's internal network. I followed that cloud service's guide and setup a proxy to each member of the replica set, on the…
Albert Zhong
  • 241
  • 1
  • 2
  • 7
10
votes
2 answers

How To: Dockerized MongoDB Replication on Elastic Container Service

I have a Node.js app together with a MongoDB database running on AWS ECS. The setup I've got currently is formed of 2 ELB's and 2 Instances running each a Docker container with its assigned service (node/mongo): Elastic Load Balancer -> Dockerized…
Claudiu S
  • 201
  • 2
  • 5
10
votes
1 answer

Easiest way to restart MongoDB

What's the easiest and safest(low data loss, no file locking issues) way to restart mongodb on a production system?
mixdev
  • 383
  • 2
  • 3
  • 10
10
votes
4 answers

Why are my MongoDB queries really, really slow?

I've inherited a large MongoDB server at work, and have been tasked with figuring out why queries run against it are so slow. The DB contains tons and tons of records (on the order of 10^9) and takes up about 300 GiB. At first, I thought that the…
Mark LeMoine
  • 201
  • 1
  • 3
  • 7
9
votes
4 answers

Unable to install MongoDB 3.4 on Debian stretch

I added mongodb repo to source list: deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main Then apt-get update. When I try to install mongodb-org I'm getting this: root@ns:~# aptitude install mongodb-org The following NEW packages will…
ponury-kostek
  • 319
  • 1
  • 3
  • 10
9
votes
3 answers

Why can't i install mongodb 3.0 on Ubuntu 14.04 32bit?

I have followed all the official istructions listed here: official page In detail, i have done: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 (seems ok) echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release…
Moppo
  • 193
  • 1
  • 1
  • 6
9
votes
5 answers

How to set ulimits for mongod?

How do I set ulimits for the mongod process/user on CentOS? I've read the official documentation but it doesn't provide OS-specific instructions. I need to set ulimit -u 64000 and need this to persist after reboot. I'm running CentOS 5.5 although…
Tim
  • 584
  • 2
  • 9
  • 20
9
votes
2 answers

pecl install mongo - keeps compiling with wrong module API

Working with Ubuntu 12.04 here, nginx and php5-fpm I had mongo working well on php 5.3, then I added the ondrej/php5 ppa and updated to php5.4. It kept GD and CURL extensions, but not mongo. I re-added the line to the php.ini file, and nothing. Then…
kavisiegel
  • 349
  • 1
  • 3
  • 12
9
votes
3 answers

Run a MongoDB configuration server without 3GB of journal files

For a production sharded MongoDB installation we need 3 configuration servers. According to the documentation "the config server mongod process is fairly lightweight and can be ran on machines performing other work". However, in the default…
Thilo
  • 240
  • 1
  • 2
  • 9
8
votes
3 answers

How to correctly configure MongoDB to use Letsencrypt SSL on Ubuntu

How do I correctly configure MongoDB to use Letsencrypt SSL on Ubuntu? I have created an SSL certificate using Letsencrypt and combined it via: cat /etc/letsencrypt/live/example.com/fullchain.pem /etc/letsencrypt/live/example.com/privkey.pem >…
Petah
  • 650
  • 2
  • 13
  • 24
8
votes
5 answers

Create a new user for MongoDB inside Docker

I'm using the default MongoDB Docker image and I'm trying to create a new user for the database. I'm currently trying to do it this way: FROM docker.io/mongo:3.2 MAINTAINER alexandernst@gmail.com ADD create_ddbb.js /tmp/ RUN mongod…
alexandernst
  • 534
  • 3
  • 9
  • 21
1
2
3
59 60