Can I choose which databases/collections are replicated ?
A replica set is a group of mongodb instances that maintain the same data set, so it is necessary for the entire set of data to be replicated between nodes.
Is a 2-members (a primary and a secondary) replica set eligible ?
A replica set should have an odd number of voting members. If you want ...
mongoreplay is currently not included in the Windows installation packages (as at MongoDB 4.0). This tool uses the libpcap packet capture library which is available on most UNIX/Linux platforms but is not standard on Windows.
There's a relevant feature request to watch/upvote in the MongoDB Jira issue tracker: TOOLS-1730: Release mongoreplay for windows.
MongoDB's server roles & permissions (as at MongoDB 4.0) don't provide the level of granularity you are after. However, I think this level of control is much better handled in your application logic.
For example, even if it were possible to limit write access to the $push operator, there are additional options such as $slice that could cause existing ...
The read/write ticket values are set to 128 to prevent overwhelming WiredTiger with concurrent requests. They are chosen to cater for the typical server hardware. It's generally not recommended to change these values.
If you see stalling and observed that the read/write tickets to be maxed out, it's extremely likely that this is just a symptom. The cause of ...
Basically, I made it with db.updateUser.
On the doc, it says the following:
passwordDigestor : string
Optional. Indicates whether the server or the client digests the password.
Available values are:
The server receives undigested password from the client and digests the password.
"client" (Not compatible ...
Currently, The lower level you can control the access of resources is at the collection level.
One option you can try is to create collections at each user level and give the user access to only that collection.
First, make sure the MongoDB service is running in the remote machine.
Next, check if the MongoDB port is open to the outside network or not.
The following will help you check if the 27017 is accessible from an outside machine.
nmap -Pn 188.8.131.52
If the port is not enabled, use the following command to expose the port.
sudo iptables -I INPUT -p tcp -...
There is an OPEN issue already created in MongoDB JIRA for the same.
As per the issue, MongoDB index creation is not Multi-Threaded.
use multiple cores for index sort-phase
Multi-threaded index creation
Try increasing the maxIndexBuildMemoryUsageMegabytes parameter value.
The default value is 500 MB.
What does it do?
Limits the amount of ...
What uses that much memory during the resync?
There is so many things uses the memory during the resync time, As Mr. SpiXel has clearly defined here The WiredTiger cache settings only controls the size of memory directly used by the WiredTiger storage engine (not the total memory used by mongod). Many other things are potentially taking memory in a MongoDB/...
As MongoDB documentation here With WiredTiger, MongoDB utilizes both the WiredTiger internal cache and the filesystem cache.
Starting in 3.4, the WiredTiger internal cache, by default, will use the larger of either:
50% of (RAM - 1 GB), or
For example, on a system with a total of 4GB of RAM the WiredTiger cache will use 1.5GB of RAM (0.5 * (4 GB ...
As per MongoDB articles blog here The Connection Manager in Studio 3T makes it easy to connect to MongoDB, whether it is cloud-hosted or on-premise, or through a direct connection or a replica set.
Create a new connection
Open Studio 3T.
Click on the Connect button either in the global toolbar or under
the Recent Connections tab. This will open the ...