This tag is used mostly for a MongoDB replica set (a group of "mongod" processes that maintain the same data set) and rarely for a Kubernetes ReplicaSet (the next-generation Replication Controller with set-based selector support).
Questions tagged [replicaset]
583 questions
4
votes
0 answers
docker-compose, mongodb, single node replica set
I'm trying to configure a mongodb single node replica set using docker compose for connecting with elasticsearch using monstache in development. Using the documentation docs. I have the following docker compose file:
mongo:
image: mongo
…

tamis
- 125
- 5
4
votes
0 answers
Cannot configure a Mongo replicaSet from docker init script
I am trying to set up a 2 node replicaSet in docker for local development only. Single node already works fine, but there are keyfile issues when trying to add a member as part of the docker init script (NB I see the keyfile is set correctly from…

James Williams
- 43
- 5
4
votes
0 answers
GKE delete deployment does not delete replicaset
Since yesterday, I am facing a weird error on K8s ( using GKE)
I have a deployment with 1 pod running. I delete deployment and it used to terminate the pod and the replicaset with it.
But now, if I delete the deployment, the replicaset does not get…

crossvalidator
- 437
- 6
- 12
4
votes
2 answers
Connection to MongoDB ReplicaSet on Kubernetes
I have deployed MongoDB ReplicaSet on Kubernetes using Helm and the chart stable/mongodb-replicaset
On Kubernetes, I can connect to MongoDB using the connection string which is something of the…

GZZ
- 628
- 9
- 18
4
votes
1 answer
Mongodb "NetworkInterfaceExceededTimeLimit" replicaset
Solved:
It most have been a version specific bug. Updating to mongodb-org@4.0.5 solved the issue and the machines connect fine. I'll leave the question for eventualy someone who faces the same issue.
Original question:
I have two servers in a two…

Nuno Sousa
- 832
- 7
- 15
4
votes
2 answers
How to decide when to use replicate sets for mongodb in production
We are currently hosting the MongoDB using its official docker image in ec2, for our production environment, its 32gb memory server dedicated to just this service.
How can using replica sets help us in the improvement of the performance of our…

Raj Saraogi
- 1,780
- 1
- 13
- 21
4
votes
1 answer
Cannot connect from node to mongo replicaset in docker
I've set up a docker network in which I have set up 3 mongo containers.
Summary of what I've done:
created a docker network in which I set up 3 mongo docker containers
open up the mongo shell for first node and set up the config for the replica…

minihulk22
- 149
- 3
- 14
4
votes
0 answers
Mongodb replica sets in .gitlab-ci.yml
I was not able to set up replica sets for mongodb in gitlab ci while locally replica sets it ran successfully. How do I modify .gitlab-ci.yml file to make it work in my gitlab pipeline?
Locally I am running 3 mongodb for replica sets following the…

iik
- 73
- 1
- 9
4
votes
1 answer
StatefulSet, ReplicaSet or DaemonSet. What is the best for a single Pod?
I want to deploy a single Pod on a Node to host my service (like GitLab for the example). The problem is : a Pod will not be re-created after the Node failure (like a reboot). The solution(s) : Use a StatefulSet, ReplicaSet or DaemonSet to ensure…

Nurza
- 201
- 2
- 10
4
votes
1 answer
update kubernetes deployment with jenkins
I'm using Kubernetes Continuous Deploy Plugin to deploy and upgrade a Deployment on my Kubernetes Cluster.
I'm using pipeline and this is the Jenkinsfile:
pipeline {
environment {
JOB_NAME = "${JOB_NAME}".replace("-deploy", "")
…

Jayyrus
- 12,961
- 41
- 132
- 214
4
votes
0 answers
How to create mongo replica set on docker swarm global mode
I would like to setup 3 member mongo replica set on docker swarm with mode = global and stuck in enabling replication.
For e.g. Docker swarm nodes: node1, node2, node3 (all manager). All nodes were created on different VM's.
Next created 1 service…

nitesh
- 41
- 2
4
votes
1 answer
mongodb client libraries fail to connect to replica set
Using recent client libraries (pymongo 3.4, mongodb (nodejs) 2.2.27), I am having trouble connecting to my mongodb servers with replication.
The replicaset configuration contains either the internal ips of the servers or the hostnames. I'm getting…

njLT
- 464
- 6
- 21
4
votes
0 answers
MongoDB secondaries writing twice as much as primary
I'm running Mongodb 3.2 WiredTiger on Amazon EC2 with 3 shards, each having a replica set of 3 instances. All instances have been installed identically.
EC2 instances limit IO on the amount of operations you can do per second. With this in mind,…

Valtteri Pirttilä
- 41
- 5
4
votes
1 answer
mongo: ERROR: child process failed, exited with error number 100
I successfully created a replica set of three instances on mongodb. Each member of the replica set is instantiated using a config file. When I tested it, everything went well, and executed successfully without any errors.
The next step, which is…

Nicolas
- 91
- 2
- 6
4
votes
1 answer
Spring Data Mongodb - single configuration for standalone mongo and replicaset
I started out with a single mongo instance as my database, configured in spring xml:
Recently, I changed my configuration to use a 3 node replica set, configured as:

user1747545
- 93
- 7