What is the role of the PD client?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: PD client的作用?

| username: yytest

The PD Client module is responsible for the interaction between the TiDB server and PD. Besides “requesting TSO from PD and receiving the returned TSO,” what other functions does it handle? Thank you, everyone!

| username: TiDBer_RjzUpGDL | Original post link

Metadata storage interaction, routing functionality, cluster information collection, and scheduling.

| username: TiDBer_QYr0vohO | Original post link

The module that interacts with PD

| username: 健康的腰间盘 | Original post link

Learned something, thank you to the original poster.

| username: zhaokede | Original post link

The module that interacts with PD in TiDB

| username: zhh_912 | Original post link

The PD Client module acts as a bridge between the TiDB cluster and PD, taking on important functions such as obtaining cluster information, data location, leader election, load balancing, and fault handling. It ensures the high availability, high performance, and stability of the TiDB cluster.

| username: Jack-li | Original post link

Cluster Metadata Management, Online DDL Operations, Load Balancing and Partition Management, Global Transaction Management, Configuration Updates and Synchronization, Health Checks and Failover

| username: 小于同学 | Original post link

Interaction with PD

| username: TiDBer_vJGTQABF | Original post link

Perform load balancing scheduling for TiKV

| username: Sword | Original post link

PD scheduling module

| username: jiayou64 | Original post link

The PD Client is not only responsible for TiDB Server requesting and receiving TSO from PD, but also involves other operations related to cluster metadata, scheduling strategies, such as obtaining Region locations.

| username: 鱼跃龙门 | Original post link

The PD Client in TiDB Server interacts with PD, serving as a bridge between TiDB Server and PD.

| username: TiDBer_HUfcQIJx | Original post link

PD scheduling

| username: zhaokede | Original post link

PD interaction module

| username: 濱崎悟空 | Original post link

PD interaction

| username: TiDBer_ZxWlj6A1 | Original post link

It can also support high availability of PD, cache region information which is metadata information, obtain global transaction IDs, etc.