nozjkoitop commented on code in PR #16889:
URL: https://github.com/apache/druid/pull/16889#discussion_r1981564329


##########
docs/configuration/index.md:
##########
@@ -1383,6 +1387,16 @@ field. If not provided, the default is to not use it at 
all.
 |`categoryMap`|A JSON map object mapping a task type String name to a 
[CategoryConfig](#categoryconfig) object, by which you can specify category 
config for different task type.|`{}`|
 |`strong`|With weak workerCategorySpec (the default), tasks for a dataSource 
may be assigned to other Middle Managers if the Middle Managers specified in 
`categoryMap` are not able to run all pending tasks in the queue for that 
dataSource. With strong workerCategorySpec, tasks for a dataSource will only 
ever be assigned to their specified Middle Managers, and will wait in the 
pending queue if necessary.|false|
 
+###### taskLimits
+
+The `taskLimits` field can be used with the `equalDistribution`, 
`fillCapacity`, `equalDistributionWithCategorySpec` and 
`fillCapacityWithCategorySpec` strategies.
+If you don't provide it, it will default to not being used.
+
+|Property|Description|Default|
+|--------|-----------|-------|
+|`taskLimits`|A map where each key is a task type (`String`), and the 
corresponding value represents the absolute limit on the number of task slots 
that tasks of this type can occupy. The value is an `Integer` that is greater 
than or equal to 0. For example, a value of 5 means that tasks of this type can 
occupy up to 5 task slots in total. If both absolute and ratio limits are 
specified for the same task type, the effective limit will be the smaller of 
the absolute limit and the limit derived from the corresponding ratio. 
`taskLimits = {"index_parallel": 3, "query_controller": 5}`. In this example, 
parallel indexing tasks can occupy up to 3 task slots, and query controllers 
can occupy up to 5 task slots.|`{}`|
+|`taskRatios`|A map where each key is a task type (`String`), and the 
corresponding value is a `Double` which should be in the range [0, 1], 
representing the ratio of available task slots that tasks of this type can 
occupy. This ratio defines the proportion of total task slots a task type can 
use, calculated as `ratio * totalSlots`. If both absolute and ratio limits are 
specified for the same task type, the effective limit will be the smaller of 
the absolute limit and the limit derived from the corresponding ratio. 
`taskRatios = {"index_parallel": 0.5, "query_controller": 0.25}`. In this 
example, parallel indexing tasks can occupy up to 50% of the total task slots, 
and query controllers can occupy up to 25% of the total task slots.|`{}`|

Review Comment:
   Done, thanks



-- 
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]

Reply via email to