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

Add a setting to limit number of sessions per application #89835

Open
dikshant opened this issue Oct 12, 2022 · 0 comments
Open

Add a setting to limit number of sessions per application #89835

dikshant opened this issue Oct 12, 2022 · 0 comments
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)

Comments

@dikshant
Copy link

dikshant commented Oct 12, 2022

Is your feature request related to a problem? Please describe.
Currently some customers are colocating multiple applications on the same cluster. While #76401 added support for client connections per node, this is not granular enough for some use cases.

Different applications may have different needs in terms of how many sessions they need to use. Uniformly applying a single cluster wide limit across all applications means some applications will be over provisioned and some will be starved out for sessions. Having a per application session limit would allow each application to have a set number of sessions.

Describe the solution you'd like
An off-by-default setting similar to server.max_connections_per_gateway but on a per application basis. We would need a way to specify the application name and its session limit. We also need to decide where this setting should live.

Describe alternatives you've considered
Long term, Unified Architecture (UA) which will allow multi tenant clusters could solve this problem where each cluster with its own max connection limit would map to a single application. But it is worth discussing adding a per application connection limit for the near term.
Alternatively, this could also be configured on a per SQL user basis.

Jira issue: CRDB-20460

@dikshant dikshant added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) labels Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
None yet
Development

No branches or pull requests

1 participant