Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data InstanceFleetConfig = InstanceFleetConfig' {}
- newInstanceFleetConfig :: InstanceFleetType -> InstanceFleetConfig
- instanceFleetConfig_instanceTypeConfigs :: Lens' InstanceFleetConfig (Maybe [InstanceTypeConfig])
- instanceFleetConfig_targetOnDemandCapacity :: Lens' InstanceFleetConfig (Maybe Natural)
- instanceFleetConfig_name :: Lens' InstanceFleetConfig (Maybe Text)
- instanceFleetConfig_targetSpotCapacity :: Lens' InstanceFleetConfig (Maybe Natural)
- instanceFleetConfig_launchSpecifications :: Lens' InstanceFleetConfig (Maybe InstanceFleetProvisioningSpecifications)
- instanceFleetConfig_instanceFleetType :: Lens' InstanceFleetConfig InstanceFleetType
Documentation
data InstanceFleetConfig Source #
The configuration that defines an instance fleet.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
See: newInstanceFleetConfig
smart constructor.
InstanceFleetConfig' | |
|
Instances
newInstanceFleetConfig Source #
Create a value of InstanceFleetConfig
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:instanceTypeConfigs:InstanceFleetConfig'
, instanceFleetConfig_instanceTypeConfigs
- The instance type configurations that define the EC2 instances in the
instance fleet.
$sel:targetOnDemandCapacity:InstanceFleetConfig'
, instanceFleetConfig_targetOnDemandCapacity
- The target capacity of On-Demand units for the instance fleet, which
determines how many On-Demand Instances to provision. When the instance
fleet launches, Amazon EMR tries to provision On-Demand Instances as
specified by InstanceTypeConfig. Each instance configuration has a
specified WeightedCapacity
. When an On-Demand Instance is provisioned,
the WeightedCapacity
units count toward the target capacity. Amazon
EMR provisions instances until the target capacity is totally fulfilled,
even if this results in an overage. For example, if there are 2 units
remaining to fulfill capacity, and Amazon EMR can only provision an
instance with a WeightedCapacity
of 5 units, the instance is
provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only Spot Instances are provisioned for
the instance fleet using TargetSpotCapacity
. At least one of
TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than
0. For a master instance fleet, only one of TargetSpotCapacity
and
TargetOnDemandCapacity
can be specified, and its value must be 1.
$sel:name:InstanceFleetConfig'
, instanceFleetConfig_name
- The friendly name of the instance fleet.
$sel:targetSpotCapacity:InstanceFleetConfig'
, instanceFleetConfig_targetSpotCapacity
- The target capacity of Spot units for the instance fleet, which
determines how many Spot Instances to provision. When the instance fleet
launches, Amazon EMR tries to provision Spot Instances as specified by
InstanceTypeConfig. Each instance configuration has a specified
WeightedCapacity
. When a Spot Instance is provisioned, the
WeightedCapacity
units count toward the target capacity. Amazon EMR
provisions instances until the target capacity is totally fulfilled,
even if this results in an overage. For example, if there are 2 units
remaining to fulfill capacity, and Amazon EMR can only provision an
instance with a WeightedCapacity
of 5 units, the instance is
provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only On-Demand Instances are provisioned
for the instance fleet. At least one of TargetSpotCapacity
and
TargetOnDemandCapacity
should be greater than 0. For a master instance
fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can
be specified, and its value must be 1.
$sel:launchSpecifications:InstanceFleetConfig'
, instanceFleetConfig_launchSpecifications
- The launch specification for the instance fleet.
$sel:instanceFleetType:InstanceFleetConfig'
, instanceFleetConfig_instanceFleetType
- The node type that the instance fleet hosts. Valid values are MASTER,
CORE, and TASK.
instanceFleetConfig_instanceTypeConfigs :: Lens' InstanceFleetConfig (Maybe [InstanceTypeConfig]) Source #
The instance type configurations that define the EC2 instances in the instance fleet.
instanceFleetConfig_targetOnDemandCapacity :: Lens' InstanceFleetConfig (Maybe Natural) Source #
The target capacity of On-Demand units for the instance fleet, which
determines how many On-Demand Instances to provision. When the instance
fleet launches, Amazon EMR tries to provision On-Demand Instances as
specified by InstanceTypeConfig. Each instance configuration has a
specified WeightedCapacity
. When an On-Demand Instance is provisioned,
the WeightedCapacity
units count toward the target capacity. Amazon
EMR provisions instances until the target capacity is totally fulfilled,
even if this results in an overage. For example, if there are 2 units
remaining to fulfill capacity, and Amazon EMR can only provision an
instance with a WeightedCapacity
of 5 units, the instance is
provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only Spot Instances are provisioned for
the instance fleet using TargetSpotCapacity
. At least one of
TargetSpotCapacity
and TargetOnDemandCapacity
should be greater than
0. For a master instance fleet, only one of TargetSpotCapacity
and
TargetOnDemandCapacity
can be specified, and its value must be 1.
instanceFleetConfig_name :: Lens' InstanceFleetConfig (Maybe Text) Source #
The friendly name of the instance fleet.
instanceFleetConfig_targetSpotCapacity :: Lens' InstanceFleetConfig (Maybe Natural) Source #
The target capacity of Spot units for the instance fleet, which
determines how many Spot Instances to provision. When the instance fleet
launches, Amazon EMR tries to provision Spot Instances as specified by
InstanceTypeConfig. Each instance configuration has a specified
WeightedCapacity
. When a Spot Instance is provisioned, the
WeightedCapacity
units count toward the target capacity. Amazon EMR
provisions instances until the target capacity is totally fulfilled,
even if this results in an overage. For example, if there are 2 units
remaining to fulfill capacity, and Amazon EMR can only provision an
instance with a WeightedCapacity
of 5 units, the instance is
provisioned, and the target capacity is exceeded by 3 units.
If not specified or set to 0, only On-Demand Instances are provisioned
for the instance fleet. At least one of TargetSpotCapacity
and
TargetOnDemandCapacity
should be greater than 0. For a master instance
fleet, only one of TargetSpotCapacity
and TargetOnDemandCapacity
can
be specified, and its value must be 1.
instanceFleetConfig_launchSpecifications :: Lens' InstanceFleetConfig (Maybe InstanceFleetProvisioningSpecifications) Source #
The launch specification for the instance fleet.
instanceFleetConfig_instanceFleetType :: Lens' InstanceFleetConfig InstanceFleetType Source #
The node type that the instance fleet hosts. Valid values are MASTER, CORE, and TASK.