libZSservicesZSamazonka-emrZSamazonka-emr
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.EMR.Types.InstanceFleet

Description

 
Synopsis

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.

Constructors

InstanceFleet' 

Fields

  • provisionedSpotCapacity :: Maybe Natural

    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.

  • status :: Maybe InstanceFleetStatus

    The current status of the instance fleet.

  • targetOnDemandCapacity :: Maybe Natural

    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.

  • instanceFleetType :: Maybe InstanceFleetType

    The node type that the instance fleet hosts. Valid values are MASTER, CORE, or TASK.

  • instanceTypeSpecifications :: Maybe [InstanceTypeSpecification]

    An array of specifications for the instance types that comprise an instance fleet.

  • name :: Maybe Text

    A friendly name for the instance fleet.

  • provisionedOnDemandCapacity :: Maybe Natural

    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.

  • targetSpotCapacity :: Maybe Natural

    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.

  • id :: Maybe Text

    The unique identifier of the instance fleet.

  • launchSpecifications :: Maybe InstanceFleetProvisioningSpecifications

    Describes the launch specification for an instance fleet.

Instances

Instances details
Eq InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

Read InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

Show InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

Generic InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

Associated Types

type Rep InstanceFleet :: Type -> Type #

NFData InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

Methods

rnf :: InstanceFleet -> () #

Hashable InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

FromJSON InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

type Rep InstanceFleet Source # 
Instance details

Defined in Amazonka.EMR.Types.InstanceFleet

type Rep InstanceFleet = D1 ('MetaData "InstanceFleet" "Amazonka.EMR.Types.InstanceFleet" "libZSservicesZSamazonka-emrZSamazonka-emr" 'False) (C1 ('MetaCons "InstanceFleet'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "provisionedSpotCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceFleetStatus))) :*: (S1 ('MetaSel ('Just "targetOnDemandCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "instanceFleetType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceFleetType)) :*: S1 ('MetaSel ('Just "instanceTypeSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceTypeSpecification]))))) :*: ((S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "provisionedOnDemandCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "targetSpotCapacity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "launchSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceFleetProvisioningSpecifications)))))))

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.