public interface ResourceConfig extends Config
org.aeonbits.owner.Config.ConverterClass, org.aeonbits.owner.Config.DecryptorClass, org.aeonbits.owner.Config.DefaultValue, org.aeonbits.owner.Config.DisableableFeature, org.aeonbits.owner.Config.DisableFeature, org.aeonbits.owner.Config.EncryptedValue, org.aeonbits.owner.Config.HotReload, org.aeonbits.owner.Config.HotReloadType, org.aeonbits.owner.Config.Key, org.aeonbits.owner.Config.LoadPolicy, org.aeonbits.owner.Config.LoadType, org.aeonbits.owner.Config.PreprocessorClasses, org.aeonbits.owner.Config.Separator, org.aeonbits.owner.Config.Sources, org.aeonbits.owner.Config.TokenizerClass| Modifier and Type | Field and Description |
|---|---|
static String |
CONTAINER_RESOURCE_CHECk_INTERVAL_SECOND
The interval between detecting ray cluster nodes.
|
static String |
MAX_ACTOR_NUM_PER_CONTAINER
Number of actors per container.
|
static String |
TASK_RESOURCE_CPU
CPU use by per task.
|
static String |
TASK_RESOURCE_CPU_LIMIT_ENABLE
Whether to enable CPU limit in resource control.
|
static String |
TASK_RESOURCE_MEM
Memory use by each task
|
static String |
TASK_RESOURCE_MEM_LIMIT_ENABLE
Whether to enable memory limit in resource control.
|
| Modifier and Type | Method and Description |
|---|---|
int |
actorNumPerContainer()
Number of actors per container.
|
boolean |
isTaskCpuResourceLimit()
Whether to enable CPU limit in resource control.
|
boolean |
isTaskMemResourceLimit()
Whether to enable memory limit in resource control.
|
long |
resourceCheckIntervalSecond()
The interval between detecting ray cluster nodes.
|
double |
taskCpuResource()
Number of cpu per task.
|
double |
taskMemResource()
Memory size used by each task.
|
static final String MAX_ACTOR_NUM_PER_CONTAINER
static final String CONTAINER_RESOURCE_CHECk_INTERVAL_SECOND
static final String TASK_RESOURCE_CPU
static final String TASK_RESOURCE_MEM
static final String TASK_RESOURCE_CPU_LIMIT_ENABLE
static final String TASK_RESOURCE_MEM_LIMIT_ENABLE
@Config.DefaultValue(value="1.0") @Config.Key(value="streaming.task.resource.cpu") double taskCpuResource()
@Config.DefaultValue(value="2.0") @Config.Key(value="streaming.task.resource.mem") double taskMemResource()
@Config.DefaultValue(value="false") @Config.Key(value="streaming.task.resource.cpu.limitation.enable") boolean isTaskCpuResourceLimit()
@Config.DefaultValue(value="false") @Config.Key(value="streaming.task.resource.mem.limitation.enable") boolean isTaskMemResourceLimit()
@Config.DefaultValue(value="500") @Config.Key(value="streaming.container.per.max.actor") int actorNumPerContainer()
@Config.DefaultValue(value="1") @Config.Key(value="streaming.resource.check.interval.second") long resourceCheckIntervalSecond()
Copyright © 2021. All rights reserved.