Can the PD server leader directly reload and switch to another server?

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

Original topic: pd server leader 可以直接reload切换到其他服务器吗

| username: xingzhenxiang

I want to switch the leader to another server through the reload method. Is this feasible?

| username: Kongdom | Original post link

Reloading may not necessarily switch the PD leader. It is not recommended to perform this operation during peak business hours.

| username: xingzhenxiang | Original post link

The business write has stopped, how to switch the leader?

| username: Kongdom | Original post link

You can try reloading first, and if it doesn’t switch automatically, then try manually switching the leader.

| username: xingzhenxiang | Original post link

Okay, I just don’t want to use pdctl. I’ll try reloading first. Thanks for the reply.

| username: Kongdom | Original post link

:handshake: :handshake: :handshake:

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

If you don’t want to use pdctl and the business has stopped, you can try shutting down the current PD leader directly, which should also trigger an automatic switch.

| username: Kongdom | Original post link

Yes, you can specify the node to shut down using the -N parameter.

| username: xingzhenxiang | Original post link

The switch has already been implemented using the reload method, thank you everyone.

| username: Kongdom | Original post link

:+1: :+1: :+1: