Skip to content

Commit

Permalink
Amazon Elastic MapReduce Update: Amazon EMR customers can now specify…
Browse files Browse the repository at this point in the history
… how EC2 On-Demand Capacity Reservations are used in their EMR clusters with instance fleets using allocation strategy.
  • Loading branch information
AWS committed Mar 8, 2021
1 parent 2edcb5a commit 13e65ff
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "feature",
"category": "Amazon Elastic MapReduce",
"contributor": "",
"description": "Amazon EMR customers can now specify how EC2 On-Demand Capacity Reservations are used in their EMR clusters with instance fleets using allocation strategy."
}
39 changes: 34 additions & 5 deletions services/emr/src/main/resources/codegen-resources/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2322,7 +2322,7 @@
},
"BidPrice":{
"shape":"String",
"documentation":"<p>The bid price for each EC2 Spot Instance type as defined by <code>InstanceType</code>. Expressed in USD. If neither <code>BidPrice</code> nor <code>BidPriceAsPercentageOfOnDemandPrice</code> is provided, <code>BidPriceAsPercentageOfOnDemandPrice</code> defaults to 100%.</p>"
"documentation":"<p>If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify <code>OnDemandPrice</code> to set the amount equal to the On-Demand price, or specify an amount in USD.</p>"
},
"InstanceType":{
"shape":"InstanceType",
Expand Down Expand Up @@ -2397,7 +2397,7 @@
},
"BidPrice":{
"shape":"XmlStringMaxLen256",
"documentation":"<p>The bid price for each EC2 Spot Instance as defined by <code>InstanceType</code>. Expressed in USD. If neither <code>BidPrice</code> nor <code>BidPriceAsPercentageOfOnDemandPrice</code> is provided, <code>BidPriceAsPercentageOfOnDemandPrice</code> defaults to 100%.</p>"
"documentation":"<p>If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify <code>OnDemandPrice</code> to set the amount equal to the On-Demand price, or specify an amount in USD.</p>"
},
"InstanceType":{
"shape":"InstanceType",
Expand Down Expand Up @@ -2456,7 +2456,7 @@
},
"BidPrice":{
"shape":"XmlStringMaxLen256",
"documentation":"<p>The bid price for each EC2 Spot Instance as defined by <code>InstanceType</code>. Expressed in USD. If neither <code>BidPrice</code> nor <code>BidPriceAsPercentageOfOnDemandPrice</code> is provided, <code>BidPriceAsPercentageOfOnDemandPrice</code> defaults to 100%.</p>"
"documentation":"<p>If specified, indicates that the instance group uses Spot Instances. This is the maximum price you are willing to pay for Spot Instances. Specify <code>OnDemandPrice</code> to set the amount equal to the On-Demand price, or specify an amount in USD.</p>"
},
"InstanceType":{
"shape":"InstanceType",
Expand Down Expand Up @@ -3526,7 +3526,7 @@
},
"StepConcurrencyLevel":{
"shape":"Integer",
"documentation":"<p>The number of steps that can be executed concurrently. You can specify a maximum of 256 steps. </p>"
"documentation":"<p>The number of steps that can be executed concurrently. You can specify a minimum of 1 step and a maximum of 256 steps. </p>"
}
}
},
Expand Down Expand Up @@ -3685,6 +3685,31 @@
"type":"list",
"member":{"shape":"NotebookExecutionSummary"}
},
"OnDemandCapacityReservationOptions":{
"type":"structure",
"members":{
"UsageStrategy":{
"shape":"OnDemandCapacityReservationUsageStrategy",
"documentation":"<p>Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.</p> <p>If you specify <code>use-capacity-reservations-first</code>, the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy (<code>lowest-price</code>) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy (<code>lowest-price</code>).</p> <p>If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.</p>"
},
"CapacityReservationPreference":{
"shape":"OnDemandCapacityReservationPreference",
"documentation":"<p>Indicates the instance's Capacity Reservation preferences. Possible preferences include:</p> <ul> <li> <p> <code>open</code> - The instance can run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).</p> </li> <li> <p> <code>none</code> - The instance avoids running in a Capacity Reservation even if one is available. The instance runs as an On-Demand Instance.</p> </li> </ul>"
}
},
"documentation":"<p>Describes the strategy for using unused Capacity Reservations for fulfilling On-Demand capacity.</p>"
},
"OnDemandCapacityReservationPreference":{
"type":"string",
"enum":[
"open",
"none"
]
},
"OnDemandCapacityReservationUsageStrategy":{
"type":"string",
"enum":["use-capacity-reservations-first"]
},
"OnDemandProvisioningAllocationStrategy":{
"type":"string",
"enum":["lowest-price"]
Expand All @@ -3695,7 +3720,11 @@
"members":{
"AllocationStrategy":{
"shape":"OnDemandProvisioningAllocationStrategy",
"documentation":"<p> Specifies the strategy to use in launching On-Demand Instance fleets. Currently, the only option is lowest-price (the default), which launches the lowest price first. </p>"
"documentation":"<p>Specifies the strategy to use in launching On-Demand instance fleets. Currently, the only option is <code>lowest-price</code> (the default), which launches the lowest price first.</p>"
},
"CapacityReservationOptions":{
"shape":"OnDemandCapacityReservationOptions",
"documentation":"<p>The launch specification for On-Demand instances in the instance fleet, which determines the allocation strategy.</p>"
}
},
"documentation":"<p> The launch specification for On-Demand Instances in the instance fleet, which determines the allocation strategy. </p> <note> <p>The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions. On-Demand Instances allocation strategy is available in Amazon EMR version 5.12.1 and later.</p> </note>"
Expand Down

0 comments on commit 13e65ff

Please sign in to comment.