Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce the impact of etcd leader on the availability of PD leader #7499

Closed
JmPotato opened this issue Dec 6, 2023 · 1 comment
Closed

Reduce the impact of etcd leader on the availability of PD leader #7499

JmPotato opened this issue Dec 6, 2023 · 1 comment
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@JmPotato
Copy link
Member

JmPotato commented Dec 6, 2023

We have met several cases showing that even if the PD leader can no longer provide services, the etcd leader does not switch, resulting in the entire cluster being unable to provide services and affecting the high availability of PD, ref #7251, pingcap/tidb#48204 and pingcap/tidb#48206.

Because our implementation adopts the design of a PD leader elected based on the etcd leader, we need to determine more clearly whether the current unavailable scenario requires switching the etcd leader rather than just the PD leader to achieve the higher availability.

@JmPotato JmPotato added the type/enhancement The issue or PR belongs to an enhancement. label Dec 6, 2023
ti-chi-bot bot pushed a commit that referenced this issue Dec 7, 2023
…export (#7501)

ref #7499

Provide methods to read and write `campaignTimes` instead of export.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Jan 17, 2024
#7725)

ref #7499

Sort out the initialization functions of etcd client.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Jan 17, 2024
ref #7499

Refine the etcd client healthy checker code.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Jan 31, 2024
ref #7499, ref #7730

Return the originally picked endpoints directly if all are evicted to gain better availability.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
ti-chi-bot bot pushed a commit that referenced this issue Feb 2, 2024
ref #7499

member: reset campaign times after successful resign

Signed-off-by: husharp <jinhao.hu@pingcap.com>
@JmPotato
Copy link
Member Author

JmPotato commented Feb 6, 2024

Close with #7737.

@JmPotato JmPotato closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant