Skip to content

Commit

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

MongoDB [recommends](https://www.mongodb.com/docs/manual/core/replica-set-members/#replica-set-members) that there should be at least 3 replicas for a replicaSet configuration. For a sharded MongoDB setup, a secondary configserver is locked while running `mongodump` utility for backup. This can result in various issues like sharding commands get stucked, primary-secondary syncing issue etc. So, ensure at least 3 configServer replicas by specifying >= 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 0e93924

Please sign in to comment.