You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "kfaraz (via GitHub)" <gi...@apache.org> on 2024/04/13 12:07:18 UTC

[PR] Update default value of useMaxMemoryEstimates for Hadoop jobs (druid)

kfaraz opened a new pull request, #16280:
URL: https://github.com/apache/druid/pull/16280

   ### Description
   The `useMaxMemoryEstimates` parameter was introduced as a way to improve memory estimates while building an `OnHeapIncrementalIndex`. The default value of this parameter has been `false` (i.e. use better more accurate estimates) for several Druid releases now, and has been found to be very stable.
   
   The changes in this PR are meant to align the usage of this parameter in Hadoop ingestion with native ingestion. Eventually, the parameter `useMaxMemoryEstimates` will be completely removed from Druid.
   
   ### Changes
   - Add optional tuning config for Hadoop jobs: `useMaxMemoryEstimates`
   - Use default value of `false` to align with current native batch ingestion
   
   


-- 
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


Re: [PR] Update default value of useMaxMemoryEstimates for Hadoop jobs (druid)

Posted by "kfaraz (via GitHub)" <gi...@apache.org>.
kfaraz commented on PR #16280:
URL: https://github.com/apache/druid/pull/16280#issuecomment-2076589172

   Thanks for catching the missing parameter, @kgyrtkirk !


-- 
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


Re: [PR] Update default value of useMaxMemoryEstimates for Hadoop jobs (druid)

Posted by "kfaraz (via GitHub)" <gi...@apache.org>.
kfaraz merged PR #16280:
URL: https://github.com/apache/druid/pull/16280


-- 
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


Re: [PR] Update default value of useMaxMemoryEstimates for Hadoop jobs (druid)

Posted by "kgyrtkirk (via GitHub)" <gi...@apache.org>.
kgyrtkirk commented on code in PR #16280:
URL: https://github.com/apache/druid/pull/16280#discussion_r1578928295


##########
indexing-hadoop/src/main/java/org/apache/druid/indexer/HadoopTuningConfig.java:
##########
@@ -404,6 +414,7 @@ public HadoopTuningConfig withVersion(String ver)
         appendableIndexSpec,
         maxRowsInMemory,
         maxBytesInMemory,
+        false,

Review Comment:
   typo?
   ```suggestion
           useMaxMemoryEstimates,
   ```



##########
indexing-hadoop/src/main/java/org/apache/druid/indexer/HadoopTuningConfig.java:
##########
@@ -372,6 +381,7 @@ public HadoopTuningConfig withWorkingPath(String path)
         appendableIndexSpec,
         maxRowsInMemory,
         maxBytesInMemory,
+        false,

Review Comment:
   typo? this will turn `useMaxMemoryEstimates` off irrespectively its current setting 
   ```suggestion
           useMaxMemoryEstimates,
   ```



##########
indexing-hadoop/src/main/java/org/apache/druid/indexer/HadoopTuningConfig.java:
##########
@@ -436,6 +447,7 @@ public HadoopTuningConfig withShardSpecs(Map<Long, List<HadoopyShardSpec>> specs
         appendableIndexSpec,
         maxRowsInMemory,
         maxBytesInMemory,
+        false,

Review Comment:
   
   ```suggestion
           useMaxMemoryEstimates,
   ```



-- 
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