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


##########
docs/configuration/index.md:
##########
@@ -1135,6 +1135,7 @@ The following configs only apply if the Overlord is 
running in remote mode. For
 |`druid.indexer.runner.taskAssignmentTimeout`|How long to wait after a task 
has been assigned to a Middle Manager before throwing an error.|`PT5M`|
 |`druid.indexer.runner.minWorkerVersion`|The minimum Middle Manager version to 
send tasks to. The version number is a string. This affects the expected 
behavior during certain operations like comparison against 
`druid.worker.version`. Specifically, the version comparison follows dictionary 
order. Use ISO8601 date format for the version to accommodate date comparisons. 
|"0"|
 | `druid.indexer.runner.parallelIndexTaskSlotRatio`| The ratio of task slots 
available for parallel indexing supervisor tasks per worker. The specified 
value must be in the range `[0, 1]`. |1|
+|`druid.indexer.runner.taskSlotLimits`| A map where each key is a task type, 
and the corresponding value represents the limit on the number of task slots 
that a task of that type can occupy on a worker. The key is a `String` that 
specifies the task type. The value can either be a Double or Integer. A 
`Double` in the range [0, 1], representing a ratio of the available task slots 
that tasks of this type can occupy. An `Integer` that is greater than or equal 
to 0, representing an absolute limit on the number of task slots that tasks of 
this type can occupy.|Empty map|

Review Comment:
   Example added! Good catch on the compaction slots. I'll need to test that, 
but based on the code, it looks like compaction slots availability will be 
checked twice (in the duty, and during the worker selection) if related entry 
will be included in the `taskSlotLimits` map. If there's a conflict, some tasks 
might end up in a pending state for a while.



-- 
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: commits-unsubscr...@druid.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to