Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Done
-
None
Description
JobManagerProcessUtils#processSpecFromConfig should be used to get JobManagerProcessSpec. Then JobManagerProcessSpec can be passed to ProcessMemoryUtils#generateJvmParametersStr to get JVM memory arg list string.
The configuration should be fixed to fallback to JobManagerOptions.TOTAL_PROCESS_MEMORY if a legacy option is set (JobManagerProcessUtils#getConfigurationWithLegacyHeapSizeMappedToNewConfigOption) before passing it to JobManagerProcessUtils#processSpecFromConfig.
Then the JVM memory arg list can be used to start the JM container in Yarn/Kubernetes active RMs instead of using the existing legacy heap options: `jobmanager.heap.size` (or `jobmanager.heap.mb`) and container cut-off options: `containerized.heap-cutoff-ratio` and `containerized.heap-cutoff-min`.
Remove container cut-off options: `containerized.heap-cutoff-ratio` and `containerized.heap-cutoff-min`
Attachments
Issue Links
- blocks
-
FLINK-16746 Deprecate legacy heap memory option for JM and expose the new ones in docs
- Closed
- is blocked by
-
FLINK-16615 Introduce data structures and utilities to calculate Job Manager memory components
- Closed
- links to