Skip to content

Commit

Permalink
Merge pull request aws#3809 from mariflax/develop
Browse files Browse the repository at this point in the history
Update create-placement-group.rst
  • Loading branch information
stealthycoin authored Dec 20, 2018
2 parents 2dacbf8 + bfb2d0d commit fe9ec61
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
8 changes: 8 additions & 0 deletions awscli/examples/ec2/create-placement-group.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ This example command creates a placement group with the specified name.
Command::

aws ec2 create-placement-group --group-name my-cluster --strategy cluster

**To create a partition placement group**

This example command creates a partition placement group named ``HDFS-Group-A`` with five partitions.

Command::

aws ec2 create-placement-group --group-name HDFS-Group-A --strategy partition --partition-count 5
30 changes: 15 additions & 15 deletions awscli/examples/ec2/run-instances.rst
Original file line number Diff line number Diff line change
Expand Up @@ -301,26 +301,26 @@ Command::

aws ec2 run-instances --image-id ami-abc12345 --count 1 --instance-type t2.micro --key-name MyKeyPair --subnet-id subnet-6e7f829e --tag-specifications 'ResourceType=instance,Tags=[{Key=webserver,Value=production}]' 'ResourceType=volume,Tags=[{Key=cost-center,Value=cc123}]'
**To launch an instance with the credit option for CPU usage of "unlimited"**
**To launch an instance with the credit option for CPU usage of ``unlimited``**

You can launch an instance and specify the credit option for CPU usage for the instance. If you do not specify the credit option, the instance launches with the default "standard" credit option. The following example launches a t2.micro instance with the "unlimited" credit option.
You can launch a burstable performance instance (T2 and T3) and specify the credit option for CPU usage for the instance. If you do not specify the credit option, a T2 instance launches with the default ``standard`` credit option and a T3 instance launches with the default ``unlimited`` credit option. The following example launches a t2.micro instance with the ``unlimited`` credit option.

Command::
aws ec2 run-instances --image-id ami-abc12345 --count 1 --instance-type t2.micro --key-name MyKeyPair --credit-specification CpuCredits=unlimited
**To launch an instance with a custom number of vCPUs**

This example launches an ``r4.4xlarge`` instance type with six vCPUs (three CPU cores multiplied by two threads per core).

**To launch an instance into a partition placement group**
You can launch an instance into a partition placement group without specifying the partition. In this example, the partition placement group is named ``HDFS-Group-A``.
Command::

aws ec2 run-instances --image-id ami-1a2b3c4d --instance-type r4.4xlarge --cpu-options "CoreCount=3,ThreadsPerCore=2" --key-name MyKeyPair

**To launch an instance and disable hyperthreading**

This example launchs an ``r4.4xlarge`` instance type and disables hyperthreading by specifying one thread per core and specifying the default number of CPU cores for the instance type (eight).

aws ec2 run-instances --placement "GroupName = HDFS-Group-A"
**To launch an instance into a specific partition of a partition placement group**
You can launch an instance into a specific partition of a partition placement group by specifying the partition number. In this example, the partition placement group is named ``HDFS-Group-A`` and the partition number is ``3``.
Command::

aws ec2 run-instances --image-id ami-1a2b3c4d --instance-type r4.4xlarge --cpu-options "CoreCount=8,ThreadsPerCore=1" --key-name MyKeyPair
aws ec2 run-instances --placement "GroupName = HDFS-Group-A, PartitionNumber = 3"

0 comments on commit fe9ec61

Please sign in to comment.