nozjkoitop commented on code in PR #16889:
URL: https://github.com/apache/druid/pull/16889#discussion_r1771578326
##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/config/WorkerTaskRunnerConfig.java:
##########
@@ -20,32 +20,66 @@
package org.apache.druid.indexing.overlord.config;
import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
+import org.apache.druid.indexing.overlord.util.CustomJobTypeLimitsDeserializer;
+
+import java.util.HashMap;
+import java.util.Map;
public class WorkerTaskRunnerConfig
{
@JsonProperty
private String minWorkerVersion = "0";
@JsonProperty
- private double parallelIndexTaskSlotRatio = 1;
+ @JsonDeserialize(using = CustomJobTypeLimitsDeserializer.class)
+ private Map<String, Number> customJobTypeLimits = new HashMap<>();
Review Comment:
It was added mostly for validation as the idea is to have double / integer
values to have an option to specify not only the ratio but also a limit
--
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]