| Modifier and Type | Method and Description |
|---|---|
static PlacementStrategy |
PlacementStrategy.packedBy(BinPackResource resource)
Places tasks on the container instances with the least available capacity of the specified resource.
|
static PlacementStrategy |
PlacementStrategy.packedByCpu()
Places tasks on container instances with the least available amount of CPU capacity.
|
static PlacementStrategy |
PlacementStrategy.packedByMemory()
Places tasks on container instances with the least available amount of memory capacity.
|
static PlacementStrategy |
PlacementStrategy.randomly()
Places tasks randomly.
|
static PlacementStrategy |
PlacementStrategy.spreadAcross(String... fields)
Places tasks evenly based on the specified value.
|
static PlacementStrategy |
PlacementStrategy.spreadAcrossInstances()
Places tasks evenly across all container instances in the cluster.
|
| Modifier and Type | Method and Description |
|---|---|
default List<PlacementStrategy> |
Ec2ServiceProps.getPlacementStrategies()
The placement strategies to use for tasks in the service.
|
List<PlacementStrategy> |
Ec2ServiceProps.Jsii$Proxy.getPlacementStrategies() |
| Modifier and Type | Method and Description |
|---|---|
void |
Ec2Service.addPlacementStrategies(PlacementStrategy... strategies)
Adds one or more placement strategies to use for tasks in the service.
|
| Modifier and Type | Method and Description |
|---|---|
Ec2Service.Builder |
Ec2Service.Builder.placementStrategies(List<? extends PlacementStrategy> placementStrategies)
The placement strategies to use for tasks in the service.
|
Ec2ServiceProps.Builder |
Ec2ServiceProps.Builder.placementStrategies(List<? extends PlacementStrategy> placementStrategies)
Sets the value of
Ec2ServiceProps.getPlacementStrategies() |
Copyright © 2021. All rights reserved.