Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The figure below shows the MongoDB system architecture. Briefly, Shards are MongoDB instances that hold a subset of a collection's data. Each shard is
The figure below shows the MongoDB system architecture. Briefly, Shards are MongoDB instances that hold a subset of a collection's data. Each shard is either a single mongod instance or a replica set. Config Servers are mongod instances that hold metadata about the cluster. The metadata maps chunks to shards. Router is a mongod instance that routes reads and writes from apps to the shards. Applications do not access the shard directly. The Config servers are set to 3 instances. Explain (1) the reason that Config servers need replications and (2) why the replications are 3 or at least 3? (Hint: consider the failover operations) (10 Marks) Application Server Router (mongos) Application Server Reads and Writes 2 or more Routers 2 or more Shards Shard (replica set) Router (mongos) Shard (replica set) 3 Config Servers Config Server Config Server Config Server
Step by Step Solution
There are 3 Steps involved in it
Step: 1
1 Config servers need replications to ensure that the cluster metadata is always available and consistent The cluster metadata includes information about the shards chunks and their mappings If a sing...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started