Is there a way to directly designate a specific PD as the leader?

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

Original topic: 直接指定某个pd 成为leader,是否有相应的办法实现直接将某个pd 成为leader

| username: Raymond

Dear teachers,

I would like to ask:
Assuming we have multiple PDs, is there a way to manually designate one of the PDs as the leader? I feel it should be possible. For example, when tiup restarts PD, it should switch the PD leader during the restart, right? So there should be a way to manually make a specific PD the leader?

| username: TiDBer_wTKU9jv6 | Original post link

| username: 啦啦啦啦啦 | Original post link

You can use pd-ctl to transfer the leader to a specified member:
member leader transfer pd3

| username: HACK | Original post link

The pd ctl tool can be configured manually.

| username: Raymond | Original post link

Got it, thanks.

| username: Raymond | Original post link

Okay, thank you.

| username: Raymond | Original post link

Got it. Thanks, boss.

| username: cs58_dba | Original post link

I tried it on version v5.4, and it indeed works.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.