Class TaskExecutorProcessSpec
- java.lang.Object
-
- org.apache.flink.runtime.util.config.memory.CommonProcessMemorySpec<TaskExecutorFlinkMemory>
-
- org.apache.flink.runtime.clusterframework.TaskExecutorProcessSpec
-
- All Implemented Interfaces:
Serializable
,ProcessMemorySpec
public class TaskExecutorProcessSpec extends CommonProcessMemorySpec<TaskExecutorFlinkMemory>
Describe the specifics of different resource dimensions of the TaskExecutor process.A TaskExecutor's memory consists of the following components.
- Framework Heap Memory
- Framework Off-Heap Memory
- Task Heap Memory
- Task Off-Heap Memory
- Network Memory
- Managed Memory
- JVM Metaspace
- JVM Overhead
The relationships of TaskExecutor memory components are shown below.
┌ ─ ─ Total Process Memory ─ ─ ┐ ┌ ─ ─ Total Flink Memory ─ ─ ┐ │ ┌───────────────────────────┐ │ ││ Framework Heap Memory ││ ─┐ │ └───────────────────────────┘ │ │ │ ┌───────────────────────────┐ │ │ ┌─ ││ Framework Off-Heap Memory ││ ├─ On-Heap │ │ └───────────────────────────┘ │ │ │ │┌───────────────────────────┐│ │ │ │ │ Task Heap Memory │ │ ─┘ │ │└───────────────────────────┘│ │ │ ┌───────────────────────────┐ │ ├─ ││ Task Off-Heap Memory ││ │ │ └───────────────────────────┘ │ │ │┌───────────────────────────┐│ ├─ │ │ Network Memory │ │ │ │└───────────────────────────┘│ │ │ ┌───────────────────────────┐ │ Off-Heap ─┼─ │ Managed Memory │ │ ││└───────────────────────────┘││ │ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘ │ │┌─────────────────────────────┐│ ├─ │ JVM Metaspace │ │ │└─────────────────────────────┘│ │ ┌─────────────────────────────┐ └─ ││ JVM Overhead ││ └─────────────────────────────┘ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┘
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description TaskExecutorProcessSpec(CPUResource cpuCores, MemorySize frameworkHeapSize, MemorySize frameworkOffHeapSize, MemorySize taskHeapSize, MemorySize taskOffHeapSize, MemorySize networkMemSize, MemorySize managedMemorySize, MemorySize jvmMetaspaceSize, MemorySize jvmOverheadSize, Collection<ExternalResource> extendedResources)
protected
TaskExecutorProcessSpec(CPUResource cpuCores, TaskExecutorFlinkMemory flinkMemory, JvmMetaspaceAndOverhead jvmMetaspaceAndOverhead, int numSlots, Collection<ExternalResource> extendedResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CPUResource
getCpuCores()
Map<String,ExternalResource>
getExtendedResources()
MemorySize
getManagedMemorySize()
MemorySize
getNetworkMemSize()
int
getNumSlots()
MemorySize
getTaskHeapSize()
MemorySize
getTaskOffHeapSize()
int
hashCode()
String
toString()
-
Methods inherited from class org.apache.flink.runtime.util.config.memory.CommonProcessMemorySpec
getFlinkMemory, getJvmDirectMemorySize, getJvmHeapMemorySize, getJvmMetaspaceAndOverhead, getJvmMetaspaceSize, getJvmOverheadSize, getTotalFlinkMemorySize, getTotalProcessMemorySize
-
-
-
-
Constructor Detail
-
TaskExecutorProcessSpec
@VisibleForTesting public TaskExecutorProcessSpec(CPUResource cpuCores, MemorySize frameworkHeapSize, MemorySize frameworkOffHeapSize, MemorySize taskHeapSize, MemorySize taskOffHeapSize, MemorySize networkMemSize, MemorySize managedMemorySize, MemorySize jvmMetaspaceSize, MemorySize jvmOverheadSize, Collection<ExternalResource> extendedResources)
-
TaskExecutorProcessSpec
protected TaskExecutorProcessSpec(CPUResource cpuCores, TaskExecutorFlinkMemory flinkMemory, JvmMetaspaceAndOverhead jvmMetaspaceAndOverhead, int numSlots, Collection<ExternalResource> extendedResources)
-
-
Method Detail
-
getCpuCores
public CPUResource getCpuCores()
-
getTaskHeapSize
public MemorySize getTaskHeapSize()
-
getTaskOffHeapSize
public MemorySize getTaskOffHeapSize()
-
getNetworkMemSize
public MemorySize getNetworkMemSize()
-
getManagedMemorySize
public MemorySize getManagedMemorySize()
-
getNumSlots
public int getNumSlots()
-
getExtendedResources
public Map<String,ExternalResource> getExtendedResources()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classCommonProcessMemorySpec<TaskExecutorFlinkMemory>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCommonProcessMemorySpec<TaskExecutorFlinkMemory>
-
-