Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Config servers for zone sharded deployment

Good morning everyone,

I would like to ask for help in a topic.

If I have a cluster in two datacenters in different countries, I would have shared it separated by zones, for each country to record in its datacenter, but I would have replicated them in the other country, for him to read in his own datacenter, until then everything understood.

Now, what about the config servers, is there a primary in each datacenter? Will I always have to cross the country to record a new key? because the replica could also have both data centers, but what about when you need to record a new key? How to create shards from the configs server?

Any other way to resolve this?

Thanks for the help