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

Is it possible to limit the amount of concurrent connections of a specific user #2765

Open
AreWeDreaming opened this issue May 14, 2024 · 2 comments

Comments

@AreWeDreaming
Copy link
Contributor

Affiliation
General Atomics/DIII-D

Context
We have an automated workflow that we are in the process of applying to a large chunk of our MDS+ database. At the moment the going is slow because we limit the amount of concurrent instances of this workflow to avoid overloading our MDS+ server.
The workflow is launched by a service account, and if the MDS+ server would automatically hold concurrent connections from this service account when a certain threshold is reached, we could scale-up without having to worry about our MDS+ server.

Question
Is it possible to automatically hold connection attempts for a specific user once a threshold of connections has already been opened by this user. Note that we want to hold them and not reject them as that would cause unacceptable failures in our workflow downstream.

@AreWeDreaming AreWeDreaming changed the title Is it possible to limit the amount of concurrent connections a specific user Is it possible to limit the amount of concurrent connections of a specific user May 14, 2024
@mwinkel-dev
Copy link
Contributor

Hi @AreWeDreaming,

My initial guess (perhaps wrong) is that is not possible in current versions of MDSplus. However, I will investigate and post a definitive answer in the next day or two.

If limiting concurrent connections per user can't be done at the moment, we might be able to add that capability as a new feature. That too would require some investigation to determine feasibility.

@mwinkel-dev
Copy link
Contributor

mwinkel-dev commented May 16, 2024

Hi @AreWeDreaming,

My colleagues have confirmed that MDSplus presently cannot limit concurrent mdsip connections per user. (Using the standard features of Linux, it is possible to apply "rate limiting" to all connections, but that likely isn't what is needed for your automated workflow).

If you decide that this is a feature that MDSplus should have, let us know if this issue should be upgraded to a feature request.

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

2 participants