Skip to content

Commit 96bb9f5

Browse files
author
AWS
committed
Amazon EMR Update: This release provides the support for new allocation strategies i.e. CAPACITY_OPTIMIZED_PRIORITIZED for Spot and PRIORITIZED for On-Demand by taking input of priority value for each instance type for instance fleet clusters.
1 parent 3dcac3a commit 96bb9f5

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon EMR",
4+
"contributor": "",
5+
"description": "This release provides the support for new allocation strategies i.e. CAPACITY_OPTIMIZED_PRIORITIZED for Spot and PRIORITIZED for On-Demand by taking input of priority value for each instance type for instance fleet clusters."
6+
}

services/emr/src/main/resources/codegen-resources/service-2.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
"endpointPrefix":"elasticmapreduce",
66
"jsonVersion":"1.1",
77
"protocol":"json",
8+
"protocols":["json"],
89
"serviceAbbreviation":"Amazon EMR",
910
"serviceFullName":"Amazon EMR",
1011
"serviceId":"EMR",
1112
"signatureVersion":"v4",
1213
"targetPrefix":"ElasticMapReduce",
13-
"uid":"elasticmapreduce-2009-03-31"
14+
"uid":"elasticmapreduce-2009-03-31",
15+
"auth":["aws.auth#sigv4"]
1416
},
1517
"operations":{
1618
"AddInstanceFleet":{
@@ -3123,6 +3125,10 @@
31233125
"CustomAmiId":{
31243126
"shape":"XmlStringMaxLen256",
31253127
"documentation":"<p>The custom AMI ID to use for the instance type.</p>"
3128+
},
3129+
"Priority":{
3130+
"shape":"NonNegativeDouble",
3131+
"documentation":"<p>The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.</p>"
31263132
}
31273133
},
31283134
"documentation":"<p>An instance type configuration for each instance type in an instance fleet, which determines the Amazon EC2 instances Amazon EMR attempts to provision to fulfill On-Demand and Spot target capacities. When you use an allocation strategy, you can include a maximum of 30 instance type configurations for a fleet. For more information about how to use an allocation strategy, see <a href=\"https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-instance-fleet.html\">Configure Instance Fleets</a>. Without an allocation strategy, you may specify a maximum of five instance type configurations for a fleet.</p> <note> <p>The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.</p> </note>"
@@ -3165,6 +3171,10 @@
31653171
"CustomAmiId":{
31663172
"shape":"XmlStringMaxLen256",
31673173
"documentation":"<p>The custom AMI ID to use for the instance type.</p>"
3174+
},
3175+
"Priority":{
3176+
"shape":"NonNegativeDouble",
3177+
"documentation":"<p>The priority at which Amazon EMR launches the Amazon EC2 instances with this instance type. Priority starts at 0, which is the highest priority. Amazon EMR considers the highest priority first.</p>"
31683178
}
31693179
},
31703180
"documentation":"<p>The configuration specification for each instance type in an instance fleet.</p> <note> <p>The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.</p> </note>"
@@ -4217,15 +4227,18 @@
42174227
},
42184228
"OnDemandProvisioningAllocationStrategy":{
42194229
"type":"string",
4220-
"enum":["lowest-price"]
4230+
"enum":[
4231+
"lowest-price",
4232+
"prioritized"
4233+
]
42214234
},
42224235
"OnDemandProvisioningSpecification":{
42234236
"type":"structure",
42244237
"required":["AllocationStrategy"],
42254238
"members":{
42264239
"AllocationStrategy":{
42274240
"shape":"OnDemandProvisioningAllocationStrategy",
4228-
"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>"
4241+
"documentation":"<p>Specifies the strategy to use in launching On-Demand instance fleets. Available options are <code>lowest-price</code> and <code>prioritized</code>. <code>lowest-price</code> specifies to launch the instances with the lowest price first, and <code>prioritized</code> specifies that Amazon EMR should launch the instances with the highest priority first. The default is <code>lowest-price</code>.</p>"
42294242
},
42304243
"CapacityReservationOptions":{
42314244
"shape":"OnDemandCapacityReservationOptions",
@@ -5011,7 +5024,8 @@
50115024
"capacity-optimized",
50125025
"price-capacity-optimized",
50135026
"lowest-price",
5014-
"diversified"
5027+
"diversified",
5028+
"capacity-optimized-prioritized"
50155029
]
50165030
},
50175031
"SpotProvisioningSpecification":{
@@ -5035,7 +5049,7 @@
50355049
},
50365050
"AllocationStrategy":{
50375051
"shape":"SpotProvisioningAllocationStrategy",
5038-
"documentation":"<p>Specifies one of the following strategies to launch Spot Instance fleets: <code>price-capacity-optimized</code>, <code>capacity-optimized</code>, <code>lowest-price</code>, or <code>diversified</code>. For more information on the provisioning strategies, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html\">Allocation strategies for Spot Instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p> <note> <p>When you launch a Spot Instance fleet with the old console, it automatically launches with the <code>capacity-optimized</code> strategy. You can't change the allocation strategy from the old console.</p> </note>"
5052+
"documentation":"<p>Specifies one of the following strategies to launch Spot Instance fleets: <code>capacity-optimized</code>, <code>price-capacity-optimized</code>, <code>lowest-price</code>, or <code>diversified</code>, and <code>capacity-optimized-prioritized</code>. For more information on the provisioning strategies, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html\">Allocation strategies for Spot Instances</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.</p> <note> <p>When you launch a Spot Instance fleet with the old console, it automatically launches with the <code>capacity-optimized</code> strategy. You can't change the allocation strategy from the old console.</p> </note>"
50395053
}
50405054
},
50415055
"documentation":"<p>The launch specification for Spot Instances in the instance fleet, which determines the defined duration, provisioning timeout behavior, and allocation strategy.</p> <note> <p>The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions. Spot Instance allocation strategy is available in Amazon EMR releases 5.12.1 and later.</p> </note> <note> <p>Spot Instances with a defined duration (also known as Spot blocks) are no longer available to new customers from July 1, 2021. For customers who have previously used the feature, we will continue to support Spot Instances with a defined duration until December 31, 2022. </p> </note>"

0 commit comments

Comments
 (0)