Skip to content

Commit

Permalink
Mongo configServer should have at least 3 repliacs
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha committed Sep 26, 2023
1 parent 9606883 commit 1494fd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/addons/mongodb/sharding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ $ kubectl apply -f https://github.com/stashed/docs/raw/{{< param "info.version"
mongodb.kubedb.com/sample-mgo-sh created
```

According to MongoDB [docs](https://www.mongodb.com/docs/manual/core/replica-set-members/#replica-set-members), we should always have at least 3 replicas in the replicaSet.
As one secondary gets locked while running mongodump utility, This is a must, in case of configServer while taking backup. There can be various issues like sharding commands get stucked, primary-secondary syncing issue etc. if you don't specify >= 3 replicas in `.spec.shardTopology.configServer.replicas` field.

KubeDB will deploy a MongoDB database according to the above specification. It will also create the necessary secrets and services to access the database.

Let's check if the database is ready to use,
Expand Down

0 comments on commit 1494fd2

Please sign in to comment.