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

I need nodejs and mongodb to handle 5000 requests per second

As the title suggested, I need nodejs and mongodb to handle 5000 requests per second. Right off the bat that is. We'll grow to many times that eventually. My initial thoughts are to put each on separate machines, though I'm not sure if I should…
talentedmrjones
  • 235
  • 3
  • 8
4
votes
2 answers

how to limit memory size a process can consume in linux

I am trying to figure out how to limit memory usage of mongo daemon to 4G. I thought to use limits.conf with memlock but I am not sure that's the right way to do it. from limits.conf man page I've understood that ulimits are referred to users and…
smintz
  • 282
  • 3
  • 9
4
votes
2 answers

MongoDB secondaries not catching up

I have a replica set that I am trying to upgrade the primary to one with more memory and upgraded disk space. So I raided a couple disks together on the new primary, rsync'd the data from a secondary and added it to the replica set. After checking…
Bryan
  • 245
  • 2
  • 7
4
votes
2 answers

MongoDB Sharding on single linux machine

Let's say I wanna have a MongoDB Server with 5 shards on one machine and each shard having replica set of 3 servers. Would that increase performance? What are downsides of this?
jM2.me
  • 311
  • 2
  • 7
  • 15
4
votes
1 answer

Unable to connect to a remote database

I'm playing with MongoDB. I have a good deal of experience with MySQL and was using something called Sequel Pro to connect to remote databases. I'm now trying MongoHub but can't seem to get it to connect to the remote database. I tried a basic SSH…
Josh K
  • 454
  • 1
  • 6
  • 18
4
votes
0 answers

Moving Rocket.Chat data to different hard drive

I have Rocket.Chat running on Ubuntu 18.04.4 LTS through Snap. I would like to move the data (but not the entire snap) to another hard drive. So far this is what I have tried: Backup Rocket.Chat sudo service snap.rocketchat-server.rocketchat-server…
user2395126
  • 325
  • 1
  • 4
  • 11
3
votes
3 answers

Unable to reach primary for set Cluster0-shard-0

I've set up a MongoDB cluster on Atlas and have been able to connect to it from Compass and a NodeJs app I'm building for about a week. today I started getting consistently the "transient" error below from the NodeJs app: { MongoNetworkError:…
ekkis
  • 159
  • 1
  • 8
3
votes
0 answers

Read/Write Split in Mongodb

We are looking for some load balancing tool which can split read and write load in between replica and master node, I know it can be possible through driver or application level but I would like to do at databases level i.e ProxySQL for MySQL DB
3
votes
1 answer

mongorestore : don't know what to do with file “/home/path/to/folder/collection1.bson”, skipping

-I'm trying to import a mongodb database - From a mongodb base version 2.4.10 I exported the database with the command: mongodump -d DBNAME -o / path / folder -I tried to import the dump to a mongodb engine version 3.6.3 -I got this…
Meher Hosni
  • 31
  • 1
  • 3
3
votes
2 answers

MongoDB Compass error. 'not master and slaveOk=false'

I have just created a MongoDB Atlas instance so that I can give MongoDB a try. I have also downloaded Compass so that I can visually manage the data as I am not familiar with the MongoDB command line at the moment. After white-listing my IP address…
J. Pinkman
  • 131
  • 1
  • 1
  • 2
3
votes
1 answer

Docker container unable to connect to MongoDB Replica set

I'm using Docker Swarm to create a cluster of web applications and databases. I've four containers running, three of them are a single mongodb replica set and the last is a asp.net core application which connects to the replica set. All the four…
Jamie
  • 131
  • 1
  • 4
3
votes
1 answer

mongodb replica set backup using rsync

I have configured mongodb replica set (I have 3 db instances -Redhat) and I would like to take a backup of db file ( dbPath: /var/lib/mongo) using rsync, 10 or 12 times per day. So, do I need to stop the mongod process before start rsync? select…
Prabath Dolawatta
  • 519
  • 1
  • 5
  • 13
3
votes
1 answer

Does the MongoDB 3.2 WiredTiger compression include stuff stored in RAM

As I understand it WiredTiger compresses the journal, collections and indexes. Does it also compress them whilst they are stored in RAM? For example if my compresses index use 10 MiB on disk can I assume that they also use 10 MiB of RAM? Or should…
Antonius Bloch
  • 4,680
  • 6
  • 29
  • 41
3
votes
2 answers

change mongo admin password on an arbiter

I have a mongoDB replicaSet that has 3 DBs - PRIMARY/SECONDARY + Arbiter. All 3 were installed the same manner - meaning they have admin database with a default password. Now - I want to change the default passwords. On primary/secondary it worked…
Boaz
  • 405
  • 1
  • 11
  • 16
3
votes
2 answers

Install MongoDB extension on a specific PHP version

I have a Debian web server on which I installed Apache/Mysql/PHP5 around ISPConfig 3. I manually installed an additionnal PHP version (PHP 7.0.5) in order to have one website on PHP 5, and one website on PHP 7, and everything was working. (I used…