kfaraz commented on code in PR #17782: URL: https://github.com/apache/druid/pull/17782#discussion_r2007399094
########## docs/api-reference/automatic-compaction-api.md: ########## @@ -258,6 +258,95 @@ Host: http://ROUTER_IP:ROUTER_PORT A successful request returns an HTTP `200 OK` message code and an empty response body. +### Update cluster-level compaction config + +Updates cluster-level configuration for compaction tasks which applies to all datasources, unless explicitly overridden in the datasource compaction config. +This includes the following fields: + +|Config|Description|Default value| +|------|-----------|-------------| +|`compactionTaskSlotRatio`|Ratio of number of slots taken up by compaction tasks to the number of total task slots across all workers.|0.1| +|`maxCompactionTaskSlots`|Maximum number of task slots that can be taken up by compaction tasks.|2147483647 (i.e. total task slots)| +|`compactionPolicy.type`|Policy to choose intervals for compaction. Currently, the only supported policy in `newestSegmentFirst`.|`newestSegmentFirst`| +|`compactionPolicy.priorityDatasource`|Datasource to prioritize for compaction. The intervals of this datasource are chosen for compaction before the intervals of any other datasource. Within this datasource, the intervals are prioritized based on the chosen compaction policy.|None| +|`useSupervisors`|Whether compaction should be run on Overlord using supervisors instead of Coordinator duties.|false| +|`engine`|Engine used for running compaction tasks. Possible values are `native` and `msq`. `msq` engine can be used for compaction only if `useSupervisors` is `true`.|`native`| Review Comment: Yes, fair point. Let me update that. -- 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]
