Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: pd的cache,cluster cacne这些,具体是指代那些呢
I have some questions about the cache involved in the PD module and would like to ask for some clarification from everyone.
-
Is the cache mentioned here the cache within the PD cluster?
-
Is this cluster cache the cache in the PD Client within the TiDB Service?
-
Is the cache in the PD Client within the TiDB Service actively updated by TiDB, or is it updated by PD?
Got it.
I would like to ask again, does each PD node run an entire etcd cluster or a single etcd node?
Each PD node runs one etcd instance.
The cluster is definitely deployed in a distributed manner.
This means that each PD contains an etcd instance, and these instances form an etcd cluster. PD works as a single point, so according to this etcd deployment logic, the data recorded in each PD’s etcd is incomplete?
This is a cluster, and theoretically, all etcd nodes have the same data.
Does a single etcd instance contain all the data?
Well, one of the instances is the leader.
Three data replicas are required for high availability.
etcd maintains communication and data consistency among the nodes in the cluster through the Raft algorithm. The nodes are in a peer-to-peer relationship, keeping the same data. Even if the leader node fails, a new leader will be quickly elected to ensure the normal operation of the system.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.