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

Enhance ServiceDiscovery to improve client high availability and load balance #7576

Open
3 of 4 tasks
CabinfeverB opened this issue Dec 19, 2023 · 0 comments
Open
3 of 4 tasks
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@CabinfeverB
Copy link
Member

CabinfeverB commented Dec 19, 2023

Enhancement Task

Currently, the ServiceDiscovery is used in the pd gRPC client, and it is not directly exposed to the users. Now, we have encapsulated an HTTP SDK, which also requires service discovery functionality. Therefore, we need to optimize the abstraction of ServiceDiscovery to be used by both the pd gRPC client and the pd HTTP client.

Additionally, ServiceDiscovery also needs load balancing for active follower-handle and better maintenance of the health status of leaders and followers, among other things. This aspect also requires optimization.

Moreover, after implementing the scheduling microservice, the related requests can be routed directly to the scheduling server through service discovery, instead of going through the API server. This reduces the resource cost on the API server as well.

Task:

@CabinfeverB CabinfeverB added the type/enhancement The issue or PR belongs to an enhancement. label Dec 19, 2023
ti-chi-bot bot added a commit that referenced this issue Dec 21, 2023
ref #7431, ref #7576

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot added a commit that referenced this issue Dec 26, 2023
ref #7576

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot added a commit that referenced this issue Jan 5, 2024
ref #7576

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot pushed a commit that referenced this issue Jan 12, 2024
ref #7576

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7576

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
pingandb pushed a commit to pingandb/pd that referenced this issue Jan 18, 2024
ref tikv#7576

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
Signed-off-by: pingandb <songge102@pingan.com.cn>
ti-chi-bot bot pushed a commit that referenced this issue Jan 26, 2024
ref #7576

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
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