How does the PD microservice TSO switch the leader?

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

Original topic: pd微服务 tso 如何切主?

| username: ShawnYan

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots / Logs / Monitoring]

The local cluster can already deploy the PD microservice, but how to switch the primary for TSO? Currently, ctl can only switch PD, and cannot switch microservices.

[root@tidb1 ~]# tiup ctl:v8.1.0 pd member leader transfer "pd-"
Starting component ctl: /root/.tiup/components/ctl/v8.1.0/ctl pd member leader transfer pd-
[root@tidb1 ~]# tiup ctl:v8.1.0 tso member leader transfer "pd-"
Starting component ctl: /root/.tiup/components/ctl/v8.1.0/ctl tso member leader transfer pd-
Error: ctl only supports tidb, tikv, pd, binlog, etcd and cdc currently