replicaset Questions
1
I have followed the official documentation for converting the standalone mongodb instance (local ubuntu machine) to replica set. The part where we restart mongod with --replset flag seems to invite...
Annettannetta asked 24/11, 2023 at 12:37
4
Solved
How to set rs.slaveOk() in secondary mongodb servers in replicaset via commandline?
I tried following methods :
${MONGO_HOME}/bin/mongo --port ${MONGO_PORT2} --host ${MONGO_SECONDARY2} --eval "p...
Deliver asked 27/10, 2015 at 10:59
8
I want to create a Docker container with an instance of Mongo. In particular, I would like to create a replica set with only one node (since I'm interested in transactions and they are only availab...
Busboy asked 28/4, 2020 at 17:15
3
Solved
I have a local MongoDB replica set created following this SO answer.
The docker-compose file:
services:
mongo1:
container_name: mongo1
image: mongo:4.2
ports:
- 27017:27017
restart: always
c...
Dearman asked 6/8, 2021 at 0:45
6
Solved
I have created a replicaset with wrong container image with below configuration.
apiVersion: extensions/v1beta1
kind: ReplicaSet
metadata:
name: rs-d33393
namespace: default
spec:
replicas: 4
...
Daimon asked 8/1, 2020 at 8:26
5
I tried to create a replica set following instruction such as : https://hevodata.com/learn/mongodb-replica-set-3-easy-methods/
Sadly, I have a problem at the first step :
Problem
The command :
mon...
Bohunk asked 23/11, 2021 at 12:42
4
I'm fairly new with mongodb
I have a replica set 3 nodes
1 primary (A)
1 secondary (B)
1 Arbiter (C)
The replica set was created using MMS
the 3 node are in 3 different cities
I keep on getting ...
Zeniazenith asked 12/6, 2015 at 17:14
1
https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#creating-a-deployment mentions that a deployment creates a replicaSet but appends a pod-template-hash to the name of the replic...
Richers asked 12/11, 2021 at 9:9
3
We are using Kubernetes 1.8 to deploy our software in a cloud provider. Frequently, when deploying a specific pod-template, the deployment fails to create a successful replicaset and no instance is...
Breastbone asked 23/2, 2018 at 18:44
4
I have setup a MongoDB replica set with 3 nodes(vm's running CentOS). One node became Primary other 2 stuck in Startup. When these 2 nodes will change their states from startup to secondary.
aryab...
Doggone asked 30/4, 2016 at 8:21
3
I am trying to deploy mongodb replica set . I have made my mongodb instance as primary of the replica . Now i am trying to add another mongodb instance hosted at different iP address, as secondary ...
Biographical asked 20/4, 2015 at 11:41
5
Solved
there is the replica with three member (primary,secondary,secondary).
Suppose one of secondaries down for a day, after return secondary back to replica how can i find, is it synced yet or not?
I d...
Checkerboard asked 30/10, 2013 at 6:14
2
I have a standalone MongoDB instance in my AWS EC2 instance. I'm planning to shift it to Mongo Atlas. The prerequisite is to convert the MongoDB instance into a replica set.
Below is the code for...
Calan asked 11/10, 2019 at 9:26
3
I am getting this message every time I do rs.initiate() :
No host described in new configuration 1 for replica set rs0 maps to this node
This is how my /etc/hosts/ file looks on both the repli...
Constantina asked 23/3, 2015 at 13:18
3
Solved
I'm trying to connect to MongoDB replica set consists of 3 mongo docker-container, but Error Message: Unable to reach primary for set rs0 occurs.
Git Repository: https://github.com/frontalnh/mongod...
Individuation asked 23/10, 2018 at 1:51
3
Solved
In my remote machine, I've set up a docker container machine that I manage using docker-compose.
I created 3 docker containers for each MongoDB instance I want in my replica set
mongodb_01:
imag...
Eberhard asked 4/3, 2019 at 15:38
2
Solved
I am looking at http://mongodb.github.io/node-mongodb-native/driver-articles/mongoclient.html and when you scroll to the section "A replicaset connect using no acknowledgment by default and re...
Ununa asked 30/5, 2014 at 16:0
1
Solved
I have tried to run mongodb replicaSet in local with mongoldb-community in my Mac I follow mongodb doc I can run it by this command
mongod --port 27017 --dbpath /usr/local/var/mongodb --replSet rs0...
Sadden asked 15/6, 2020 at 13:18
5
Solved
Three members, primary & secondary - and a third one that's "OTHER" - I can't find any info on that state, not sure what to do, I've restarted the instance, but it always comes-up the same. Can...
Shellashellac asked 22/11, 2017 at 16:38
1
Solved
I'm taking the Mongodb University M103 course and over there they gave a brief overview of what a cluster and a replica set is.
From my understanding a cluster is a set of servers or nodes. While a...
Anthropogeography asked 7/5, 2020 at 11:7
2
Solved
What is the reasoning behind only making change streams available on replica sets?
Incurrence asked 7/1, 2018 at 16:31
3
Solved
I am working with mongodb and nodejs. I have mongodb hosted on Atlas.
My backend had been working perfectly but now it is sometimes getting stuck and when I see the analytics on mongodb atlas it ...
Jungian asked 30/5, 2019 at 7:19
2
Solved
I needed to use Mongo DB transactions, and recently I understood that transactions don't work for Mongo standalone mode, but only for replica sets
(Mongo DB with C# - document added regardless of t...
Intimate asked 28/5, 2019 at 6:21
3
Solved
Replica Set 1
apiVersion: apps/v1
kind: ReplicaSet
metadata:
labels:
app: nginx
name: rs-1
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
ve...
Odilia asked 13/1, 2019 at 19:2
4
Solved
I tried to connect to MongoDB replicaSet via mongoose. I used this link.
Configuration json:
"mongoose": {
"uri": "mongodb://localhost:27022/chat,localhost:27021,localhost:27020",
"options": {
...
Durango asked 24/6, 2014 at 21:25
1 Next >
© 2022 - 2025 — McMap. All rights reserved.