samarth
12/21/2020, 4:30 AM-XX:ActiveProcessorCount
java opts, so that I can override number of available processors, and workaround the need to request high number of CPUs in k8 deployment.
Wanted to do some perf test to reach optimal value.
/**
* Use at most 10 or half of the processors threads for each query. If there are less than 2 processors, use 1 thread.
* <p>NOTE: Runtime.getRuntime().availableProcessors() may return value < 2 in container based environment, e.g.
* Kubernetes.
*/
public static final int MAX_NUM_THREADS_PER_QUERY =
Math.max(1, Math.min(10, Runtime.getRuntime().availableProcessors() / 2));
https://github.com/apache/incubator-pinot/blob/master/pinot-core/src/main/java/org/apache/pinot/core/operator/combine/CombineOperatorUtils.java#[…]8