Questions tagged [mongodb-replica-set]

MongoDB's replica set uses redundant nodes to provide a high availability and resilience against network partitions of the primary node.

333 questions
0
votes
0 answers

MongoDB secondary replica set sync failure with Primary (in the reporting replica)

In the mongoDB secondary replica (reporting) I am getting the sync failure and also below error messages after 30 Hrs of the traffic run. 2020-07-15T01:50:29.987+0000 W EXECUTOR [conn408277] Terminating session due to error: InternalError: failed to…
0
votes
2 answers

Do i need to change Spring Boot configuration when new member added in Mongo DB Replica Set

In my Spring Boot project i have configured Mongo DB replica set successfully. Now if i add new member to the already defined replica set , do i need to change spring boot mongo uri properties. Is there any other mechanism through which if I add…
Ashu
  • 21
  • 4
0
votes
1 answer

MongoDB: replica set and round robin query distribution?

We have a MongoDB Replica Set with this structure: 2 primaries 3 readonly secondaries We have an application that execute very heavy queries using the readonly secondaries. The problem is that the system is overloading one of the instances and the…
fguillen
  • 36,125
  • 23
  • 149
  • 210
0
votes
1 answer

Connect on-site MongoDB replica instance to remote nodes

I have a replica set running on an in-house local network. I want to add a new member running on a DigitalOcean server. I can confirm that the local server is able to reach the remote server because as soon as I attempt to add the remote member to…
Balocodes
  • 577
  • 7
  • 6
0
votes
1 answer

Kubernetes MongoDB replicaset creation failed

What i intended to do: Setup Kubernetes in Digital Ocean Configure MongoDB replicaset in kubernetes EDIT: Steps that i used to setup Kubernetes Steps to setup master node: Docker Setup using :…
0
votes
1 answer

MongoDB transactions clarification

So starting from 4.0 version MongoDB supports multi-document transaction and one thing I can not find answer to is the following. If i have a replica set consisting of a PRIMARY and SECONDARY instance on the SAME server, what would happen if an…
0
votes
1 answer

Getting "can't create user databases on a --configsvr instance" error while trying to start replicaset of config server

I want to create a replicaset of confiserver. For that I performed the following steps: 1. I created two config server using the following configs: sharding: clusterRole: configsvr replication: replSetName: TestConfigServer1 net: bindIp:…
V K
  • 1,645
  • 3
  • 26
  • 57
0
votes
1 answer

Problem connecting to the "Primary" of the replica set in MongoDB

I have created a MongoDB replica set in command line. They are running in ports 47017,47018,47019. When I do a mongo --port 47017 It always tends to connect to the "Secondary" member of the replica set $ mongo --port 47017 connecting to:…
Jackson
  • 91
  • 1
  • 2
  • 6
0
votes
0 answers

Unable to initiate the replica set for config server of sharded MongoDB cluster

I am following this link to deploy a sharded cluster. In the first step as they have told I have started three separate mongod instances as mongod --configsvr --replSet “cs” --dbpath mongodb/config/config-c --bind_ip localhost --port 57042 mongod…
Jackson
  • 91
  • 1
  • 2
  • 6
0
votes
0 answers

[mongo][replicaset] Upgrade a secure replicaset, cannot upgrade secondary

I have a 3 members replicaset (1 primary, 1 arbiter, 1 secondary) running mongodb 3.2, secured with the following, options: net: port: 27017 ssl: mode: requireSSL PEMKeyFile: /XXX/YYY.pem CAFile: /XXX/ZZZ.crt clusterFile:…
Daphoque
  • 4,421
  • 1
  • 20
  • 31
0
votes
1 answer

Unable to initiate replica set while createing config server to deploy sharded cluster

I am trying to deploy a sharded cluster in MongoDB in mac. I am following this page. For creating a config server for sharded cluster I did the following steps mkdir -p /data/config/config-a /data/config/config-b /data/config/config-c mongod…
Jackson
  • 91
  • 1
  • 2
  • 6
0
votes
1 answer

What the minimum hardware requirement for Mongo Arbiter node?

In mongoDB replica set - we can have 1 arbiter node for voting purpose only. I want to know the minimum hardware requirement for Arbiter node in terms of: RAM,CPU,Cores and IOPS Thanks
Aman Aggarwal
  • 17,619
  • 9
  • 53
  • 81
0
votes
1 answer

What is an active majority in the context of a MongoDB replica set?

The Hidden Replica Set Members page of the MongoDB docs (version 3.4) states that If you stop a voting hidden member, ensure that the set has an active majority or the primary will step down. What is an active majority? What if a hidden member of…
Adriano Di Giovanni
  • 1,445
  • 1
  • 16
  • 34
0
votes
1 answer

Kubernetes mongodb with replicasets backup

can someone please help me to take mongodb backup with replicasets. We are using kubernetest which is deployed in AWS, I deployed mongodb with replicasets in kubernetes using helm chart and tried to take backup using velero and restic, I could able…
Ram
  • 157
  • 1
  • 3
  • 8
0
votes
1 answer

How MongoDB detects majority in PSA architecture?

Consider I have a replica set with 3 nodes (2 data nodes and one arbiter (PSA)). When for some reason one of my data nodes goes down and I bring it back, during syncing with primary node, that is in state STARTUP2. At his time I will lose my change…
Mohammad Taherian
  • 1,622
  • 1
  • 15
  • 34