satwik-pachigolla opened a new pull request, #16080:
URL: https://github.com/apache/pinot/pull/16080

   ### Summary
   Making existing functionality to control multistage thread limits at the 
broker and server that is configurable with cluster configs now configurable 
with broker and server configs. This adds support for thread limiting 
heterogeneous infra rather than a single value to apply across the entire 
cluster.
   
   The previously existing cluster configs are:
   - pinot.beta.multistage.engine.max.server.query.threads (broker limit)
   - pinot.beta.multistage.engine.max.server.query.threads.hardlimit.factor 
(server limit)
   
   and we are now adding:
   - pinot.broker.mse.max.server.query.threads (broker limit)
   - pinot.server.query.executor.mse.max.execution.threads (server limit)
   
   ### Comptability
   This is backwards compatible since this is an opt-in feature. Limiting is 
only in effect when one of the configs is enabled. If both configs are enabled, 
the lower one is chosen.
   
   This is not forwards compatible once opted-in to using either of the new 
configs. 
   
   ### Testing
   
   1. Set brokers and server side limits to 100 using the new configs
   2. Load tested
   3. Observed expected limits being hit
   
   ![Screenshot 2025-06-11 at 11 51 11 
AM](https://github.com/user-attachments/assets/523ac9aa-d355-4a95-8882-1a28654dcb2e)
   
   Broker metric limited to under 222 (100 config * 20 servers / 9 brokers). 
Limits at ~170 since any further queries we were sending would cross the 222 
limit.
   
   
   ![Screenshot 2025-06-11 at 11 51 49 
AM](https://github.com/user-attachments/assets/d40358ac-8914-4000-b2af-a445dc13775a)
   
   Server JVM thread count increases by ~130. With the extra 30% accounted for 
by thread overhead apart from just the threads performing query execution.


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

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


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

Reply via email to