本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
尋找 Amazon EBS最佳化的 Amazon EC2執行個體類型
您可以使用 AWS CLI 來檢視目前支援EBS最佳化的區域中的執行個體類型。
尋找預設 Amazon EBS最佳化的執行個體類型
使用下列 describe-instance-types 命令。如果在 Windows 命令提示字元上執行此命令,請將 \ 行連續字元取代為 ^ 字元。
aws ec2 describe-instance-types \ --query 'InstanceTypes[].{InstanceType:InstanceType,"MaxBandwidth(Mb/s)":EbsInfo.EbsOptimizedInfo.MaximumBandwidthInMbps,MaxIOPS:EbsInfo.EbsOptimizedInfo.MaximumIops,"MaxThroughput(MB/s)":EbsInfo.EbsOptimizedInfo.MaximumThroughputInMBps}' \ --filters Name=ebs-info.ebs-optimized-support,Values=default --output=table
eu-west-1
的輸出範例:
-------------------------------------------------------------------------------
| DescribeInstanceTypes |
+-------------------+---------------------+-----------+-----------------------+
| InstanceType | MaxBandwidth(Mb/s) | MaxIOPS | MaxThroughput(MB/s) |
+-------------------+---------------------+-----------+-----------------------+
| m5dn.8xlarge | 6800 | 30000 | 850.0 |
| m6gd.xlarge | 4750 | 20000 | 593.75 |
| c4.4xlarge | 2000 | 16000 | 250.0 |
| r4.16xlarge | 14000 | 75000 | 1750.0 |
| m5ad.large | 2880 | 16000 | 360.0 |
...
尋找可選擇性地支援 Amazon EBS最佳化的執行個體類型
使用下列 describe-instance-types 命令。
aws ec2 describe-instance-types \ --query 'InstanceTypes[].{InstanceType:InstanceType,"MaxBandwidth(Mb/s)":EbsInfo.EbsOptimizedInfo.MaximumBandwidthInMbps,MaxIOPS:EbsInfo.EbsOptimizedInfo.MaximumIops,"MaxThroughput(MB/s)":EbsInfo.EbsOptimizedInfo.MaximumThroughputInMBps}' \ --filters Name=ebs-info.ebs-optimized-support,Values=supported --output=table
eu-west-1
的輸出範例:
--------------------------------------------------------------------------
| DescribeInstanceTypes |
+--------------+----------------------+----------+-----------------------+
| InstanceType | MaxBandwidth(Mb/s) | MaxIOPS | MaxThroughput(MB/s) |
+--------------+----------------------+----------+-----------------------+
| i2.2xlarge | 1000 | 8000 | 125.0 |
| m2.4xlarge | 1000 | 8000 | 125.0 |
| m2.2xlarge | 500 | 4000 | 62.5 |
| c1.xlarge | 1000 | 8000 | 125.0 |
| i2.xlarge | 500 | 4000 | 62.5 |
| m3.xlarge | 500 | 4000 | 62.5 |
| m1.xlarge | 1000 | 8000 | 125.0 |
| r3.4xlarge | 2000 | 16000 | 250.0 |
| r3.2xlarge | 1000 | 8000 | 125.0 |
| c3.xlarge | 500 | 4000 | 62.5 |
| m3.2xlarge | 1000 | 8000 | 125.0 |
| r3.xlarge | 500 | 4000 | 62.5 |
| i2.4xlarge | 2000 | 16000 | 250.0 |
| c3.4xlarge | 2000 | 16000 | 250.0 |
| c3.2xlarge | 1000 | 8000 | 125.0 |
| m1.large | 500 | 4000 | 62.5 |
+--------------+----------------------+----------+-----------------------+