Modifier and Type | Method and Description |
---|---|
static SchedulingPolicy |
SchedulingPolicy.parse(String policy)
Returns
SchedulingPolicy instance corresponding to the
SchedulingPolicy passed as a string. |
static ConfigurableResource |
FairSchedulerConfiguration.parseResourceConfigValue(String value)
Parses a resource config value in one of three forms:
Percentage: "50%" or "40% memory, 60% cpu"
New style resources: "vcores=10, memory-mb=1024"
or "vcores=60%, memory-mb=40%"
Old style resources: "1024 mb, 10 vcores"
In new style resources, any resource that is not specified will be
set to
Long.MAX_VALUE or 100%, as appropriate. |
static ConfigurableResource |
FairSchedulerConfiguration.parseResourceConfigValue(String value,
long missing)
Parses a resource config value in one of three forms:
Percentage: "50%" or "40% memory, 60% cpu"
New style resources: "vcores=10, memory-mb=1024"
or "vcores=60%, memory-mb=40%"
Old style resources: "1024 mb, 10 vcores"
In new style resources, any resource that is not specified will be
set to
missing or 0%, as appropriate. |
void |
AllocationFileLoaderService.reloadAllocations()
Updates the allocation list from the allocation config file.
|
Constructor and Description |
---|
AllocationConfiguration(QueueProperties queueProperties,
AllocationFileParser allocationFileParser,
ReservationQueueConfiguration globalReservationQueueConfig)
Create a fully initialised configuration for the scheduler.
|
Modifier and Type | Method and Description |
---|---|
ConfigurableResource |
AllocationFileParser.getQueueMaxResourcesDefault() |
void |
AllocationFileParser.parse() |
QueueProperties |
AllocationFileQueueParser.parse() |
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.