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

Dynamically start/stop worker threads #9

Open
poef opened this issue Aug 8, 2024 · 0 comments
Open

Dynamically start/stop worker threads #9

poef opened this issue Aug 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@poef
Copy link
Member

poef commented Aug 8, 2024

If the whole system is idle, there is no need to keep idle threads around, or at least no more than 1 (to avoid lag).
It would be nice to have an option to set minimum and maximum number of query threads, and start new ones if there are no more free workers and max-workers has not yet been reached. And after a time out stop idle threads untill min-workers is reached.
This allows you to keep less used stores running on a resource constrained server, without them using lots of memory most of the time.

@poef poef added the enhancement New feature or request label Aug 8, 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