tillrohrmann commented on a change in pull request #10716: 
[FLINK-15367][runtime] Handle backwards compatibility of 
"taskmanager.heap.size" differently for standalone / active setups
URL: https://github.com/apache/flink/pull/10716#discussion_r362780210
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/TaskExecutorResourceUtils.java
 ##########
 @@ -688,4 +669,55 @@ public static Configuration 
adjustConfigurationForLocalExecution(final Configura
 
                return modifiedConfig;
        }
+
+       public static Configuration 
adjustConfigurationForStandaloneSetups(final Configuration configuration) {
+               return 
getConfigurationMapLegacyTaskManagerHeapSizeToConfigOption(
+                       configuration, TaskManagerOptions.TOTAL_FLINK_MEMORY);
+       }
+
+       public static Configuration 
adjustConfigurationForContainerizedSetups(final Configuration configuration) {
+               return 
getConfigurationMapLegacyTaskManagerHeapSizeToConfigOption(
+                       configuration, TaskManagerOptions.TOTAL_PROCESS_MEMORY);
+       }
 
 Review comment:
   I think this method rather belongs to `ActiveResourceManagerFactory` than to 
`TaskExecutorResourceUtils`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to