minhhungit / mongodb-cluster-docker-compose

docker-compose for mongodb cluster sharded with replication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

show how to safely take down replicas

ORESoftware opened this issue · comments

It would be nice to see how to safely remove replicas from the cluster.
I only need 1 or 2 replicas in my case. For whatever reason, ChangeStreams seem to work much slower with a lot of replicas?

commented

@ORESoftware I'm sorry I did not see your message

I am not good at mongodb, I'm also still researching so I don't have the answer for your question right now

commented

@ORESoftware

As I remember mongodb replicas requires 1 primary and at least (2 secondaries) or (1 secondary and 1 arbiter)

Try to check this link if it helps https://www.mongodb.com/docs/v4.4/administration/change-streams-production-recommendations/