Skip to content

Commit 11ded3f

Browse files
sujeetvpwendell
authored andcommitted
SPARK-1790: Update EC2 scripts to support r3 instance types
Author: Varakhedi Sujeet <[email protected]> Closes #960 from sujeetv/ec2-r3 and squashes the following commits: 3cb9fd5 [Varakhedi Sujeet] SPARK-1790: Update EC2 scripts to support r3 instance
1 parent 1765c8d commit 11ded3f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

ec2/spark_ec2.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,12 @@ def get_spark_ami(opts):
230230
"c3.xlarge": "pvm",
231231
"c3.2xlarge": "pvm",
232232
"c3.4xlarge": "pvm",
233-
"c3.8xlarge": "pvm"
233+
"c3.8xlarge": "pvm",
234+
"r3.large": "hvm",
235+
"r3.xlarge": "hvm",
236+
"r3.2xlarge": "hvm",
237+
"r3.4xlarge": "hvm",
238+
"r3.8xlarge": "hvm"
234239
}
235240
if opts.instance_type in instance_types:
236241
instance_type = instance_types[opts.instance_type]
@@ -538,7 +543,12 @@ def get_num_disks(instance_type):
538543
"c3.xlarge": 2,
539544
"c3.2xlarge": 2,
540545
"c3.4xlarge": 2,
541-
"c3.8xlarge": 2
546+
"c3.8xlarge": 2,
547+
"r3.large": 1,
548+
"r3.xlarge": 1,
549+
"r3.2xlarge": 1,
550+
"r3.4xlarge": 1,
551+
"r3.8xlarge": 2
542552
}
543553
if instance_type in disks_by_instance:
544554
return disks_by_instance[instance_type]

0 commit comments

Comments
 (0)