| Modifier and Type | Method | Description |
|---|---|---|
static SchedulingPolicy |
SchedulingPolicy.parse(java.lang.String policy) |
Returns
SchedulingPolicy instance corresponding to the
SchedulingPolicy passed as a string. |
static ConfigurableResource |
FairSchedulerConfiguration.parseResourceConfigValue(java.lang.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(java.lang.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 | Description |
|---|---|
AllocationConfiguration(QueueProperties queueProperties,
AllocationFileParser allocationFileParser,
ReservationQueueConfiguration globalReservationQueueConfig) |
Create a fully initialised configuration for the scheduler.
|
| Modifier and Type | Method | Description |
|---|---|---|
ConfigurableResource |
AllocationFileParser.getQueueMaxResourcesDefault() |
|
void |
AllocationFileParser.parse() |
|
QueueProperties |
AllocationFileQueueParser.parse() |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.