Questions tagged [mongodb-3.2]
MongoDB (v.3.2) is a scalable, high-performance, open source, document-oriented database. This is version tag to describe that your question is version 3.2 specific. Please add (general) 'mongodb' tag too, to get a wider audience.
113 questions
0 votes
0 answers
32 views
Can I grant read-only access to MongoDB database without creating a user or enabling authentication?
My Questions: Is it possible to share read-only access to my MongoDB database WITHOUT creating a user? Is it possible to grant read-only permissions WITHOUT authentication being enabled on the server? ...
0 votes
1 answer
1k views
Help required to find correct MongoDB size
Please help me to find correct MongoDB size. db version v3.4.10 I have also executed below command to check if there are any ghost file. The below command output is zero. lsof | grep deleted | grep ...
0 votes
1 answer
1k views
MongoDB 2 node cluster
I am trying to understand the implications of setting up a 2 node MongoDB cluster with the following configuration (Documentation does say a minimum of 3 nodes is required). MongoDB Version is 3.2. If ...
5 votes
2 answers
11k views
How can we use transaction in mongodb standalone connection?
I want to use transaction in mongodb but its told to replicaset can we perform transaction query with standalone mongodb if yes please share how to we can because when I try its give error This ...
0 votes
0 answers
339 views
MongoDB works only on user is assigned to admin database
I am using mongo db with authentication and it is working as expected when I map the user to the admin database like below, use admin; db.getUsers(); { "_id" : "admin.test1", ...
3 votes
1 answer
3k views
adding and removing a node from a mongo replica set
I have a new backup server I want to add to our mongo replica sets. As far as I can tell its as easy as logging on to the replica sets primary and adding the following command: rs.add( { host: "...
0 votes
0 answers
28 views
MongoDB Intermittent Little to No Insert/Write Activity
I have a MongoDB 3.2 WiredTiger Server running on Windows Server 2008 R2 Enterprise in Production while a MongoDB 3.2 WiredTiger Server running on Windows Server 2012 R2 in Testing. Production has ...
0 votes
1 answer
140 views
Mongo DB Upgrade 3.0 to 3.2 Verification of Upgrade
We have a few environments with MongoDB 3.0, these are standalone servers. These servers are already using WiredTiger Storage engine. I am trying to upgrade them to 4.2. As per the upgrade ...
0 votes
0 answers
730 views
mongodb after restoring replica-set from backup the primary is not master
after recovering replica-set from a snapshot (for testing) when I run commands on the primary I got error not master and slaveOk=false does primary not equal to master? I got this output for the ...
4 votes
1 answer
10k views
Why $group is very slow in aggregation and how can faster it in MongoDB [closed]
My query is taking ~3 seconds to execute with the $group stage, How can I faster this? My query is: db.getCollection('employee_data').aggregate([ { $match: //Filter }, { $group: { ...
1 vote
2 answers
2k views
I am trying to achieve a Disaster recovery for Mongo DB
Right now i have a MongoDb HA in site one and i need another site with asynchronous replication enables in another location.This is a base plan of mine to achieve a disaster recovery . I dont have ...
1 vote
0 answers
173 views
Joining on nearest timestamp in MongoDB
MongoDB version: 3.2.11 Coming from using primarily PostgreSQL, I am new to MongoDB and am having trouble constructing complex queries in the required JSON format (where in SQL I would use CTEs). To ...
0 votes
1 answer
63 views
configsvr and nojournal
trying to start mongo config server : mongod --configsvr --dbpath /data/config-1 --port 27019 --logpath /data/config-1.log --fork --journal gives: F CONTROL [main] Failed global initialization: ...
2 votes
1 answer
282 views
Getting exception on running sh.status() command on MongoDB sharded cluster
I am running sh.status() command on my mongos instance of sharded Mongo cluster and I am getting below exception. mongos> sh.status() assert: command failed: { "ok" : 0, "errmsg" : "error ...
-1 votes
1 answer
68 views
MongoDB replica set configuration problem
I'm facing some issues when trying the following: I have a three-node MongoDB 4.0 cluster, no sharding, one mongodb instance as primary, the rest as secondaries. When I shut down the primary, one of ...