- 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.
- VMware虛擬化與云計(jì)算:vSphere運(yùn)維卷
- Protel DXP 2004 SP2原理圖與PCB設(shè)計(jì)(第4版)
- 架構(gòu)之美
- 邊做邊學(xué):3ds Max 2014動畫制作案例教程
- Maya 2019三維動畫基礎(chǔ)案例教程
- 詳解AutoCAD 2022機(jī)械設(shè)計(jì)(第6版)
- 用Cubase輕松制作你的短視頻音樂
- 邊做邊學(xué):Illustrator CS6平面設(shè)計(jì)案例教程(微課版)
- 中文版3ds Max 2022基礎(chǔ)教程
- 中文版Photoshop CS5平面設(shè)計(jì)實(shí)用教程(第2版)
- Microsoft Silverlight 4 and SharePoint 2010 Integration
- Altium Designer 21實(shí)戰(zhàn)從入門到精通
- UG NX 12.0中文版實(shí)戰(zhàn)從入門到精通
- JBoss Drools Business Rules
- 中文版3ds Max 2014基礎(chǔ)培訓(xùn)教程