You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/11/03 14:23:10 UTC
[GitHub] [druid] cryptoe commented on a diff in pull request #13271: Use lookup memory footprint in MSQ memory computations.
cryptoe commented on code in PR #13271:
URL: https://github.com/apache/druid/pull/13271#discussion_r1012972745
##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/indexing/IndexerWorkerContext.java:
##########
@@ -250,8 +242,8 @@ public FrameContext frameContext(QueryDefinition queryDef, int stageNumber)
indexIO,
dataSegmentProvider,
WorkerMemoryParameters.compute(
- Runtime.getRuntime().maxMemory(),
- numWorkersInJvm,
+ computeAvailableHeapMemory(),
Review Comment:
I meant doing only the lookup sizing calculation on the controller but I see why it can be misleading :).
Thanks for the fixes.
--
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@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org