zhoujinsong commented on code in PR #3666:
URL: https://github.com/apache/amoro/pull/3666#discussion_r2204213272
##########
amoro-optimizer/amoro-optimizer-spark/src/main/java/org/apache/amoro/optimizer/spark/SparkOptimizer.java:
##########
@@ -56,7 +56,11 @@ public static void main(String[] args) throws Exception {
// calculate optimizer memory allocation
int driverMemory =
Utils.memoryStringToMb(jsc.getConf().get("spark.driver.memory", "1g"));
int executorMemory =
Utils.memoryStringToMb(jsc.getConf().get("spark.executor.memory", "1g"));
- config.setMemorySize(driverMemory + config.getExecutionParallel() *
executorMemory);
+ int executorCores = jsc.getConf().getInt("spark.executor.cores", 1);
+ int executionParallel = config.getExecutionParallel();
+ int executorNum =
Review Comment:
Trying to use `Math.ceil((double) executionParallel / executorCores);`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]