public class TaskExecutorFlinkMemoryUtils extends Object implements FlinkMemoryUtils<TaskExecutorFlinkMemory>
FlinkMemoryUtils
for Task Executor.
The required fine-grained components are TaskManagerOptions.TASK_HEAP_MEMORY
and
TaskManagerOptions.MANAGED_MEMORY_SIZE
.
Constructor and Description |
---|
TaskExecutorFlinkMemoryUtils() |
Modifier and Type | Method and Description |
---|---|
TaskExecutorFlinkMemory |
deriveFromRequiredFineGrainedOptions(Configuration config) |
TaskExecutorFlinkMemory |
deriveFromTotalFlinkMemory(Configuration config,
MemorySize totalFlinkMemorySize) |
static MemorySize |
getFrameworkHeapMemorySize(Configuration config) |
static MemorySize |
getFrameworkOffHeapMemorySize(Configuration config) |
public TaskExecutorFlinkMemory deriveFromRequiredFineGrainedOptions(Configuration config)
deriveFromRequiredFineGrainedOptions
in interface FlinkMemoryUtils<TaskExecutorFlinkMemory>
public TaskExecutorFlinkMemory deriveFromTotalFlinkMemory(Configuration config, MemorySize totalFlinkMemorySize)
deriveFromTotalFlinkMemory
in interface FlinkMemoryUtils<TaskExecutorFlinkMemory>
public static MemorySize getFrameworkHeapMemorySize(Configuration config)
public static MemorySize getFrameworkOffHeapMemorySize(Configuration config)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.