

Node Type | Feature | Feature Description |
Primary node | Handles all read-write requests from the client. | Each replica set has only one primary node to ensure data consistency. |
Secondary node | Asynchronously replicates the primary node data to provide the read service. | Maintain data synchronization by polling the Oplog of the primary node. It can participate in the election to become the new primary node when the primary node fails. |
Hidden node | Data backup and high availability guarantee. | By default, one secondary node is specified as a hidden node, which can be quickly switched to a visible secondary node when a secondary node fails. |

Component | Feature | Specification Configuration |
mongos node | Handles request routing and load balancing by routing requests to the corresponding shards within the cluster and assembling the received responses to return them to the client. | 3–32 nodes are supported, enabling load balancing and failover. |
config server | Responsible for storing metadata information of clusters and shard nodes. | Fixed specification: 1 core and 2 GB; 20 GB disk, 3-replica set architecture. |
Shard node | Stores data shards. | 2–36 nodes are supported, enabling horizontal scaling of storage and concurrent processing capacity. |
Feedback