官术网_书友最值得收藏!

  • MongoDB High Availability
  • Afshin Mehrabani
  • 198字
  • 2021-04-02 10:05:06

Sharding the configuration server failure

To distribute the whole dataset to different machines and servers, that is, horizontal scaling, MongoDB provides you with the sharding feature. Using this feature, you can split the database into different pieces in separate servers. In the next chapters, we will learn more about this feature in detail.

MongoDB uses configuration servers to store the configuration for the sharding settings and relations between members. For the production environment, these configuration servers are exactly three in number.

If one or two distinct configuration servers become unavailable, the clustering works properly, but it cannot create more chunks from the dataset, which means that it will be read-only.

Chunks are pieces of database in separate machines, and MongoDB splits the database into chunks of data based on a sharded key. MongoDB creates chunks from the database after write operations based on the given sharded key.

If all three configuration servers become unavailable, the cluster will be unavailable as well. You should replace the configuration servers as soon as possible. Then, the cluster will continue to use the configuration servers and work properly.

We will talk about sharded keys and chunks in detail in the next chapters.

主站蜘蛛池模板: 夹江县| 互助| 墨竹工卡县| 安龙县| 麟游县| 五大连池市| 大渡口区| 共和县| 柯坪县| 新龙县| 邛崃市| 商水县| 齐齐哈尔市| 临夏县| 海丰县| 柳江县| 卢湾区| 合水县| 郴州市| 台湾省| 桂阳县| 中牟县| 贺兰县| 鸡西市| 新兴县| 瑞丽市| 克什克腾旗| 普兰县| 莫力| 临清市| 洛扎县| 日喀则市| 华阴市| 高清| 渑池县| 茂名市| 桑日县| 皮山县| 泊头市| 昔阳县| 五常市|