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 InstanceFleet = InstanceFleet' {
- provisionedSpotCapacity :: Maybe Natural
- status :: Maybe InstanceFleetStatus
- targetOnDemandCapacity :: Maybe Natural
- instanceFleetType :: Maybe InstanceFleetType
- instanceTypeSpecifications :: Maybe [InstanceTypeSpecification]
- name :: Maybe Text
- provisionedOnDemandCapacity :: Maybe Natural
- targetSpotCapacity :: Maybe Natural
- id :: Maybe Text
- launchSpecifications :: Maybe InstanceFleetProvisioningSpecifications
- newInstanceFleet :: InstanceFleet
- instanceFleet_provisionedSpotCapacity :: Lens' InstanceFleet (Maybe Natural)
- instanceFleet_status :: Lens' InstanceFleet (Maybe InstanceFleetStatus)
- instanceFleet_targetOnDemandCapacity :: Lens' InstanceFleet (Maybe Natural)
- instanceFleet_instanceFleetType :: Lens' InstanceFleet (Maybe InstanceFleetType)
- instanceFleet_instanceTypeSpecifications :: Lens' InstanceFleet (Maybe [InstanceTypeSpecification])
- instanceFleet_name :: Lens' InstanceFleet (Maybe Text)
- instanceFleet_provisionedOnDemandCapacity :: Lens' InstanceFleet (Maybe Natural)
- instanceFleet_targetSpotCapacity :: Lens' InstanceFleet (Maybe Natural)
- instanceFleet_id :: Lens' InstanceFleet (Maybe Text)
- instanceFleet_launchSpecifications :: Lens' InstanceFleet (Maybe InstanceFleetProvisioningSpecifications)
Documentation
data InstanceFleet Source #
Describes an instance fleet, which is a group of EC2 instances that host a particular node type (master, core, or task) in an Amazon EMR cluster. Instance fleets can consist of a mix of instance types and On-Demand and Spot Instances, which are provisioned to meet a defined target capacity.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
See: newInstanceFleet
smart constructor.
InstanceFleet' | |
|
Instances
newInstanceFleet :: InstanceFleet Source #
Create a value of InstanceFleet
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:provisionedSpotCapacity:InstanceFleet'
, instanceFleet_provisionedSpotCapacity
- The number of Spot units that have been provisioned for this instance
fleet to fulfill TargetSpotCapacity
. This provisioned capacity might
be less than or greater than TargetSpotCapacity
.
$sel:status:InstanceFleet'
, instanceFleet_status
- The current status of the instance fleet.
$sel:targetOnDemandCapacity:InstanceFleet'
, instanceFleet_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. You can use
InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity
units that have been provisioned for the instance fleet.
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:instanceFleetType:InstanceFleet'
, instanceFleet_instanceFleetType
- The node type that the instance fleet hosts. Valid values are MASTER,
CORE, or TASK.
$sel:instanceTypeSpecifications:InstanceFleet'
, instanceFleet_instanceTypeSpecifications
- An array of specifications for the instance types that comprise an
instance fleet.
$sel:name:InstanceFleet'
, instanceFleet_name
- A friendly name for the instance fleet.
$sel:provisionedOnDemandCapacity:InstanceFleet'
, instanceFleet_provisionedOnDemandCapacity
- The number of On-Demand units that have been provisioned for the
instance fleet to fulfill TargetOnDemandCapacity
. This provisioned
capacity might be less than or greater than TargetOnDemandCapacity
.
$sel:targetSpotCapacity:InstanceFleet'
, instanceFleet_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. You can use
InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity
units that have been provisioned for the instance fleet.
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:id:InstanceFleet'
, instanceFleet_id
- The unique identifier of the instance fleet.
$sel:launchSpecifications:InstanceFleet'
, instanceFleet_launchSpecifications
- Describes the launch specification for an instance fleet.
instanceFleet_provisionedSpotCapacity :: Lens' InstanceFleet (Maybe Natural) Source #
The number of Spot units that have been provisioned for this instance
fleet to fulfill TargetSpotCapacity
. This provisioned capacity might
be less than or greater than TargetSpotCapacity
.
instanceFleet_status :: Lens' InstanceFleet (Maybe InstanceFleetStatus) Source #
The current status of the instance fleet.
instanceFleet_targetOnDemandCapacity :: Lens' InstanceFleet (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. You can use
InstanceFleet$ProvisionedOnDemandCapacity to determine the Spot capacity
units that have been provisioned for the instance fleet.
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.
instanceFleet_instanceFleetType :: Lens' InstanceFleet (Maybe InstanceFleetType) Source #
The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.
instanceFleet_instanceTypeSpecifications :: Lens' InstanceFleet (Maybe [InstanceTypeSpecification]) Source #
An array of specifications for the instance types that comprise an instance fleet.
instanceFleet_name :: Lens' InstanceFleet (Maybe Text) Source #
A friendly name for the instance fleet.
instanceFleet_provisionedOnDemandCapacity :: Lens' InstanceFleet (Maybe Natural) Source #
The number of On-Demand units that have been provisioned for the
instance fleet to fulfill TargetOnDemandCapacity
. This provisioned
capacity might be less than or greater than TargetOnDemandCapacity
.
instanceFleet_targetSpotCapacity :: Lens' InstanceFleet (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. You can use
InstanceFleet$ProvisionedSpotCapacity to determine the Spot capacity
units that have been provisioned for the instance fleet.
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.
instanceFleet_id :: Lens' InstanceFleet (Maybe Text) Source #
The unique identifier of the instance fleet.
instanceFleet_launchSpecifications :: Lens' InstanceFleet (Maybe InstanceFleetProvisioningSpecifications) Source #
Describes the launch specification for an instance fleet.