github-advanced-security[bot] commented on code in PR #19687:
URL: https://github.com/apache/druid/pull/19687#discussion_r3595296617
##########
indexing-service/src/main/java/org/apache/druid/indexing/overlord/supervisor/SupervisorResource.java:
##########
@@ -534,6 +541,52 @@
);
}
+ @GET
+ @Path("/{id}/autoscaler")
+ @Produces(MediaType.APPLICATION_JSON)
+ @ResourceFilters(SupervisorResourceFilter.class)
+ public Response simulateAutoscaling(
+ @PathParam("id") String supervisorId,
+ @QueryParam("autoScalerStrategy") @DefaultValue(AUTOSCALER_TYPE_NAME)
String autoScalerStrategy,
+ @QueryParam("taskCountMin") int taskCountMin,
+ @QueryParam("taskCountMax") int taskCountMax,
+ @QueryParam("maxProcessingRatePerTask") int maxProcessingRatePerTask,
+ @QueryParam("optimalTaskIdleRatio") double optimalTaskIdleRatio,
+ @QueryParam("lagWeight") Double lagWeight,
+ @QueryParam("idleWeight") Double idleWeight,
+ @QueryParam("criticalLag") int criticalLag,
+ @QueryParam("currentTaskCount") Integer currentTaskCount,
+ @Context HttpServletRequest request
Review Comment:
## CodeQL / Useless parameter
The parameter 'request' is never used.
[Show more
details](https://github.com/apache/druid/security/code-scanning/11343)
--
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]