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

Limit the max connection number automatically #521

Open
djshow832 opened this issue May 1, 2024 · 0 comments
Open

Limit the max connection number automatically #521

djshow832 opened this issue May 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@djshow832
Copy link
Collaborator

djshow832 commented May 1, 2024

Development Task

Each connection consumes some memory (maximum at 4 * conn-buffer-size). When there are too many connections, TiProxy may be OOM. TiProxy should reject new connections when its memory is almost used up.

Besides, TiProxy should also consider other resources, such as CPU and file descriptors.

@djshow832 djshow832 added the enhancement New feature or request label May 1, 2024
@djshow832 djshow832 changed the title Limit the max connection number Limit the max connection number automatically May 1, 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