You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "chrajeshbabu (via GitHub)" <gi...@apache.org> on 2025/02/19 17:29:58 UTC

[I] Make MAX_NUM_THREADS_PER_QUERY configurable [pinot]

chrajeshbabu opened a new issue, #15092:
URL: https://github.com/apache/pinot/issues/15092

   Currently max number of threads to be used for a query having combine operator is 10 which can be made configurable when we have more number of segments to be processed and have high number of cores in a machine for better latencies.
   
   /**
      * 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));


-- 
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-unsubscribe@pinot.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] Make MAX_NUM_THREADS_PER_QUERY configurable [pinot]

Posted by "chrajeshbabu (via GitHub)" <gi...@apache.org>.
chrajeshbabu closed issue #15092: Make MAX_NUM_THREADS_PER_QUERY configurable
URL: https://github.com/apache/pinot/issues/15092


-- 
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-unsubscribe@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] Make MAX_NUM_THREADS_PER_QUERY configurable [pinot]

Posted by "chrajeshbabu (via GitHub)" <gi...@apache.org>.
chrajeshbabu commented on issue #15092:
URL: https://github.com/apache/pinot/issues/15092#issuecomment-2673474365

   @Jackie-Jiang 
   While going through code more deeply, we are able to configure the max threads per query both at instance level and connect level. So we are good with the configurations. Hence nothing to be worked on here. Will close it.
   
   `set maxExecutionThreads=10;
   `
   `pinot.server.query.executor.max.execution.threads
   `


-- 
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-unsubscribe@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org


Re: [I] Make MAX_NUM_THREADS_PER_QUERY configurable [pinot]

Posted by "chrajeshbabu (via GitHub)" <gi...@apache.org>.
chrajeshbabu commented on issue #15092:
URL: https://github.com/apache/pinot/issues/15092#issuecomment-2669328989

   Validated performance of a query to be processed 100 segments per server with 10, 20 threads latency of the query halved which is 100% performance benefit. So would be better to make it configurable.


-- 
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-unsubscribe@pinot.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org