JCLOUDS-383. Adding c3 instance sizes.

This commit is contained in:
Andrew Bayer 2013-11-15 10:13:25 -08:00
parent ab4473561e
commit 0d3f6441c7
2 changed files with 129 additions and 0 deletions

View File

@ -337,6 +337,76 @@ public class EC2HardwareBuilder extends HardwareBuilder {
.is64Bit(true);
}
/**
* @see InstanceType#C3_LARGE
*/
public static EC2HardwareBuilder c3_large() {
return new EC2HardwareBuilder(InstanceType.C3_LARGE)
.ram(3750)
.processors(ImmutableList.of(new Processor(2.0, 3.5)))
.volumes(
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
new VolumeImpl(16.0f, "/dev/sdb", false, false),
new VolumeImpl(16.0f, "/dev/sdc", false, false)))
.is64Bit(true);
}
/**
* @see InstanceType#C3_XLARGE
*/
public static EC2HardwareBuilder c3_xlarge() {
return new EC2HardwareBuilder(InstanceType.C3_XLARGE)
.ram(7168)
.processors(ImmutableList.of(new Processor(4.0, 3.5)))
.volumes(
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
new VolumeImpl(40.0f, "/dev/sdb", false, false),
new VolumeImpl(40.0f, "/dev/sdc", false, false)))
.is64Bit(true);
}
/**
* @see InstanceType#C3_2XLARGE
*/
public static EC2HardwareBuilder c3_2xlarge() {
return new EC2HardwareBuilder(InstanceType.C3_2XLARGE)
.ram(15360)
.processors(ImmutableList.of(new Processor(8.0, 3.5)))
.volumes(
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
new VolumeImpl(80.0f, "/dev/sdb", false, false),
new VolumeImpl(80.0f, "/dev/sdc", false, false)))
.is64Bit(true);
}
/**
* @see InstanceType#C3_4XLARGE
*/
public static EC2HardwareBuilder c3_4xlarge() {
return new EC2HardwareBuilder(InstanceType.C3_4XLARGE)
.ram(30720)
.processors(ImmutableList.of(new Processor(16.0, 3.4375)))
.volumes(
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
new VolumeImpl(160.0f, "/dev/sdb", false, false),
new VolumeImpl(160.0f, "/dev/sdc", false, false)))
.is64Bit(true);
}
/**
* @see InstanceType#C3_8XLARGE
*/
public static EC2HardwareBuilder c3_8xlarge() {
return new EC2HardwareBuilder(InstanceType.C3_8XLARGE)
.ram(61440)
.processors(ImmutableList.of(new Processor(32.0, 3.375)))
.volumes(
ImmutableList.<Volume> of(new VolumeImpl(10.0f, "/dev/sda1", true, false),
new VolumeImpl(320.0f, "/dev/sdb", false, false),
new VolumeImpl(320.0f, "/dev/sdc", false, false)))
.is64Bit(true);
}
public static EC2HardwareBuilder cg1_4xlarge() {
return new EC2HardwareBuilder(InstanceType.CG1_4XLARGE)
.ram(22 * 1024)

View File

@ -242,4 +242,63 @@ public class InstanceType {
*/
public static final String G2_2XLARGE = "g2.2xlarge";
/**
* C3 High-CPU Large
* <ul>
* <li>3.75 GiB of memory</li>
* <li>7 EC2 Compute Units (2 virtual cores)</li>
* <li>2 SSD-based volumes each with 16 GiB of instance storage</li>
* <li>64-bit platform</li>
* <li>I/O Performance: Moderate</li>
* </ul>
*/
public static final String C3_LARGE = "c3.large";
/**
* C3 High-CPU Extra Large
* <ul>
* <li>7 GiB of memory</li>
* <li>14 EC2 Compute Units (4 virtual cores)</li>
* <li>2 SSD-based volumes each with 40 GiB of instance storage</li>
* <li>64-bit platform</li>
* <li>I/O Performance: High</li>
* </ul>
*/
public static final String C3_XLARGE = "c3.xlarge";
/**
* C3 High-CPU Double Extra Large
* <ul>
* <li>15 GiB of memory</li>
* <li>28 EC2 Compute Units (8 virtual cores)</li>
* <li>2 SSD-based volumes each with 80 GiB of instance storage</li>
* <li>64-bit platform</li>
* <li>I/O Performance: High</li>
* </ul>
*/
public static final String C3_2XLARGE = "c3.2xlarge";
/**
* C3 High-CPU Quadruple Extra Large
* <ul>
* <li>30 GiB of memory</li>
* <li>55 EC2 Compute Units (16 virtual cores)</li>
* <li>2 SSD-based volumes each with 160 GiB of instance storage</li>
* <li>64-bit platform</li>
* <li>I/O Performance: High</li>
* </ul>
*/
public static final String C3_4XLARGE = "c3.4xlarge";
/**
* C3 High-CPU Octuple Extra Large
* <ul>
* <li>60 GiB of memory</li>
* <li>108 EC2 Compute Units (32 virtual cores)</li>
* <li>2 SSD-based volumes each with 320 GiB of instance storage</li>
* <li>64-bit platform</li>
* <li>I/O Performance: High</li>
* </ul>
*/
public static final String C3_8XLARGE = "c3.8xlarge";
}