Hi Sandeep,

Thanks for great posts. I was reading your post on mongo db replication —

Believe me its great and helpful. I have followed your blog and was able to create a healthy cluster. I was able to scale up and down easily. The only issue which I am facing if I kill any POD intentionally, statefulset will try to restart another one. The new POD is not able to join the cluster of mongodb.

Error I can see. Please help. Thanks.

“_id” : 4,
“name : “mongo-0.mongo:27017”,
“health” : 0,
“state” : 8,
“stateStr” : “(not reachable/healthy)”,
“uptime” : 0,

In quest of understanding How Systems Work !

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store