Skip to content

Commit

Permalink
Merge pull request #407 from rayrayson/develop
Browse files Browse the repository at this point in the history
add support for t2 instance types
  • Loading branch information
jtriley committed Jul 16, 2014
2 parents 12c3fac + dc91629 commit e9c633f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions starcluster/static.py
Expand Up @@ -110,6 +110,9 @@ def create_sc_config_dirs():

INSTANCE_TYPES = {
't1.micro': ['i386', 'x86_64'],
't2.micro': ['i386', 'x86_64'],
't2.small': ['i386', 'x86_64'],
't2.medium': ['i386', 'x86_64'],
'm1.small': ['i386', 'x86_64'],
'm1.medium': ['i386', 'x86_64'],
'm1.large': ['x86_64'],
Expand Down Expand Up @@ -146,7 +149,9 @@ def create_sc_config_dirs():
'i2.8xlarge': ['x86_64'],
}

MICRO_INSTANCE_TYPES = ['t1.micro']
T1_INSTANCE_TYPES = ['t1.micro']

T2_INSTANCE_TYPES = ['t2.micro', 't2.small', 't2.medium']

SEC_GEN_TYPES = ['m3.medium', 'm3.large', 'm3.xlarge', 'm3.2xlarge']

Expand All @@ -169,12 +174,13 @@ def create_sc_config_dirs():
I2_STORAGE_TYPES = ['i2.xlarge', 'i2.2xlarge', 'i2.4xlarge', 'i2.8xlarge']

HVM_ONLY_TYPES = (CLUSTER_COMPUTE_TYPES + CLUSTER_GPU_TYPES +
CLUSTER_HIMEM_TYPES + I2_STORAGE_TYPES + HIMEM_TYPES)
CLUSTER_HIMEM_TYPES + I2_STORAGE_TYPES + HIMEM_TYPES +
T2_INSTANCE_TYPES)

HVM_TYPES = (HVM_ONLY_TYPES + HI_IO_TYPES + HI_STORAGE_TYPES + SEC_GEN_TYPES +
M3_COMPUTE_TYPES)

EBS_ONLY_TYPES = MICRO_INSTANCE_TYPES
EBS_ONLY_TYPES = (T1_INSTANCE_TYPES + T2_INSTANCE_TYPES)

# Always make sure these match instances listed here:
# http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
Expand Down

0 comments on commit e9c633f

Please sign in to comment.