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

Multi-Factor-Based Balance #465

Open
21 of 27 tasks
djshow832 opened this issue Feb 1, 2024 · 0 comments
Open
21 of 27 tasks

Multi-Factor-Based Balance #465

djshow832 opened this issue Feb 1, 2024 · 0 comments
Assignees

Comments

@djshow832
Copy link
Collaborator

djshow832 commented Feb 1, 2024

Feature Request

Describe your feature request related problem

It may be inefficient to merely balance based on health and connection counts:

  • The workload of each connection may be different: some may be busy while others may be idle. We have seen cases when connection counts are balanced while CPU usage is not.
  • When some big queries make a TiDB OOM, all the connections on the TiDB are disconnected. Actually, connections without big queries have a chance to be migrated away before the TiDB fails.
  • In multi-AZ deployment, the cross-AZ traffic between TiProxy and TiDB may lead to significant fees. It's more cost-effective for TiProxy to route to the local TiDB preferentially.

Describe the feature you'd like

Balance TiDB instances based on more factors to maximize resource usage and reduce costs.

Tasks

Design

Factor Collection

Balance

Configuration

Observability

Cloud Adaptation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant