[DOCS-11624] Update atlas mongos configuration docs Created: 16/Apr/18  Updated: 08/Jun/18  Resolved: 20/Apr/18

Status: Closed
Project: Documentation
Component/s: Atlas
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Ravind Kumar (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-11788 Sharding mongos distribution docs sti... Closed
Participants:
Days since reply: 5 years, 42 weeks, 5 days ago
Story Points: 0.1

 Description   

https://docs.atlas.mongodb.com/create-new-cluster/#scale-your-replica-set-to-a-sharded-cluster

Atlas deploys six routers (mongos programs) for a sharded cluster. Atlas runs the routers on the shard servers. For cross-region clusters, Atlas spreads the routers across the selected regions.

This is no longer true. Atlas deploys a mongos on every shard server. This allows us to have geo-affinity to mongos from user applications from whichever region they are in.

When connecting from a driver, all mongos are included in the connection string. When connecting from the shell, only the first mongos is returned displayed.

cc: cory.mintz



 Comments   
Comment by Ravind Kumar (Inactive) [ 20/Apr/18 ]

merged

Comment by Ravind Kumar (Inactive) [ 18/Apr/18 ]

AH, I misread. This makes sense, thanks!

Comment by Cory Mintz [ 18/Apr/18 ]

No, there is one on every server. NumShards * ReplicationFactor.

Comment by Daniel Pasette (Inactive) [ 18/Apr/18 ]

Dan Pasette Cory Mintz is this to say that the number of `mongos` instances is now equal to the number of shards in your sharded cluster?

There is now one mongos on every shard server (all nodes in each shard). This allows the driver to connect to the shards that are "nearest" to it in a multi-region sharded cluster. Drivers will balance operations across all mongos which are within it's "latency window" as measured by ping time.

Comment by Ravind Kumar (Inactive) [ 18/Apr/18 ]

pasette cory.mintz is this to say that the number of `mongos` instances is now equal to the number of shards in your sharded cluster?

Generated at Thu Feb 08 08:03:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.