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

Optimize the procedure of querying backend info when many backends are down #595

Open
djshow832 opened this issue Jul 16, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@djshow832
Copy link
Collaborator

Development Task

Currently, TiProxy queries backend info by querying both TiDBTopologyInfo and TTL from ETCD every few seconds. It's fine when there are few useless backends.

However, in an auto-scaling workload, there are more and more useless backends, who has TiDBTopologyInfo on ETCD but not TTL. It may make querying ETCD very slow or even fail.

So I propose to query all TTL first and query the info by the exact path.

@djshow832 djshow832 added the enhancement New feature or request label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant