Skip to content

Commit

Permalink
SPARK-1790: Update EC2 scripts to support r3 instance types
Browse files Browse the repository at this point in the history
Author: Varakhedi Sujeet <svarakhedi@gopivotal.com>

Closes apache#960 from sujeetv/ec2-r3 and squashes the following commits:

3cb9fd5 [Varakhedi Sujeet] SPARK-1790: Update EC2 scripts to support r3 instance
  • Loading branch information
sujeetv authored and pwendell committed Jun 4, 2014
1 parent 1765c8d commit 11ded3f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ec2/spark_ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,12 @@ def get_spark_ami(opts):
"c3.xlarge": "pvm",
"c3.2xlarge": "pvm",
"c3.4xlarge": "pvm",
"c3.8xlarge": "pvm"
"c3.8xlarge": "pvm",
"r3.large": "hvm",
"r3.xlarge": "hvm",
"r3.2xlarge": "hvm",
"r3.4xlarge": "hvm",
"r3.8xlarge": "hvm"
}
if opts.instance_type in instance_types:
instance_type = instance_types[opts.instance_type]
Expand Down Expand Up @@ -538,7 +543,12 @@ def get_num_disks(instance_type):
"c3.xlarge": 2,
"c3.2xlarge": 2,
"c3.4xlarge": 2,
"c3.8xlarge": 2
"c3.8xlarge": 2,
"r3.large": 1,
"r3.xlarge": 1,
"r3.2xlarge": 1,
"r3.4xlarge": 1,
"r3.8xlarge": 2
}
if instance_type in disks_by_instance:
return disks_by_instance[instance_type]
Expand Down

0 comments on commit 11ded3f

Please sign in to comment.