MongoDb regional replica set - primary node in each region?

后端 未结 2 1601
[愿得一人]
[愿得一人] 2021-02-09 19:53

Given an application with regional users (regions being North America, Europe, Aisa), how do you create a replica set that allows HK users to write to the nearest nodes?

2条回答
  •  半阙折子戏
    2021-02-09 20:46

    Have you looked into Tag Aware Sharding?

    The balancer obeys tagged range associations, which enables the following deployment patterns:

    • isolate a specific subset of data on a specific set of shards.
    • ensure that the most relevant data reside on shards that are geographically closest to the application servers.

提交回复
热议问题