nozjkoitop opened a new pull request, #16889:
URL: https://github.com/apache/druid/pull/16889
# Improvements
Implemented a way to limit on the number of query controller tasks running
at the same time. This limit specifies what percentage or amount of task slots
can be allocated to query controllers. If the limit is reached, the tasks would
wait for resources instead of potentially blocking the execution of other tasks
(and failing after a timeout).
### Rationale
There is no mechanism in Druid to prevent the cluster from being overloaded
with controller tasks. Currently, it could cause a significant slowdown in
processing and may lead to temporary deadlock situations.
### Introduced new configuration options
* `druid.indexer.queue.controllerTaskSlotRatio` - optional value which
defines the proportion of available task slots that can be allocated to msq
controller tasks. This is a floating-point value between 0 and 1. Defaults to
null.
* `druid.indexer.queue.maxControllerTaskSlots` - optional value which
specifies the maximum number of task slots that can be allocated to controller
tasks. This is an integer value that provides a hard limit on the number of
task slots available for msq controller tasks. Defaults to null.
This PR has:
- [x] been self-reviewed.
- [x] added documentation for new or modified features or behaviors.
- [x] a release note entry in the PR description.
- [ ] added Javadocs for most classes and all non-trivial methods. Linked
related entities via Javadoc links.
- [ ] added or updated version, license, or notice information in
[licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
- [ ] added comments explaining the "why" and the intent of the code
wherever would not be obvious for an unfamiliar reader.
- [x] added unit tests or modified existing tests to cover new code paths,
ensuring the threshold for [code
coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md)
is met.
- [ ] added integration tests.
- [x] been tested in a test Druid cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]