public class TaskExecutorResourceUtils extends Object
TaskExecutorResourceSpec
of running TaskExecutor
.Modifier and Type | Method and Description |
---|---|
static Configuration |
adjustForLocalExecution(Configuration config) |
static long |
calculateTotalFlinkMemoryFromComponents(Configuration config) |
static long |
calculateTotalProcessMemoryFromComponents(Configuration config) |
static ResourceProfile |
generateDefaultSlotResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec,
int numberOfSlots)
|
static ResourceProfile |
generateTotalAvailableResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec) |
static TaskExecutorResourceSpec |
resourceSpecFromConfigForLocalExecution(Configuration config) |
@VisibleForTesting public static ResourceProfile generateDefaultSlotResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec, int numberOfSlots)
@VisibleForTesting public static ResourceProfile generateTotalAvailableResourceProfile(TaskExecutorResourceSpec taskExecutorResourceSpec)
@VisibleForTesting public static TaskExecutorResourceSpec resourceSpecFromConfigForLocalExecution(Configuration config)
public static long calculateTotalFlinkMemoryFromComponents(Configuration config)
public static long calculateTotalProcessMemoryFromComponents(Configuration config)
public static Configuration adjustForLocalExecution(Configuration config)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.