Volume throughput not improving after instance type change

0

I changed an instance from r5.4xlarge to m5d.8xlarge expecting the disk I/O performance to increase. But I am not seeing any improvement on the volume metrics. The volume is EBS and it shows that EBS optimization is enabled. I have another instance that was launched initially as an m5d.8xlarge that actually shows significantly better throughput. Both instances were originally from the same AMI. My question is : when changing an instance type by stopping, changing instance type then restarting , does the root volume get upgraded also?

질문됨 일 년 전315회 조회
3개 답변
1
수락된 답변

There are few things here. First both your EBS volumes and your EC2 instance have provisioned capacity. The EC2 instance has burst and baseline throughtput. You need to compare these with the throughput of the EBS volumes to see if your EC2 instance has sufficient capacity.

$ aws ec2 describe-instance-types --instance-types r5.4xlarge m5d.8xlarge --query "InstanceTypes[*].[InstanceType, EbsInfo.EbsOptimizedSupport, EbsInfo.EbsOptimizedInfo]"
[
    [
        "r5.4xlarge",
        {
            "BaselineBandwidthInMbps": 4750,
            "BaselineThroughputInMBps": 593.75,
            "BaselineIops": 18750,
            "MaximumBandwidthInMbps": 4750,
            "MaximumThroughputInMBps": 593.75,
            "MaximumIops": 18750
        }
    ],
    [
        "m5d.8xlarge",
        {
            "BaselineBandwidthInMbps": 6800,
            "BaselineThroughputInMBps": 850.0,
            "BaselineIops": 30000,
            "MaximumBandwidthInMbps": 6800,
            "MaximumThroughputInMBps": 850.0,
            "MaximumIops": 30000
        }
    ]
]

"Does the root volume get upgraded also?"

No, when you stop/start an instance you will keep the same volume.

aws ec2 describe-instances --instance-ids ws ec2 describe-instances --instance-ids i-0de519a76d9555c23 --query 'Reservations[].Instances[].[BlockDeviceMappings[0].Ebs.VolumeId]' 
[
    [
        "vol-0f7de28eb2b158b41"
    ]
]

aws ec2 stop-instances --instance-ids i-0de519a76d9555c23
aws ec2 describe-instances --instance-ids  i-0de519a76d9555c23 --query "Reservations[*].Instances[*].[InstanceId,State.Name,InstanceType]"  
aws ec2 start-instances --instance-ids i-0de519a76d9555c23

$ aws ec2 describe-instances --instance-ids ws ec2 describe-instances --instance-ids i-0de519a76d9555c23 --query 'Reservations[].Instances[].[BlockDeviceMappings[0].Ebs.VolumeId]'
[
    [
        "vol-0f7de28eb2b158b41"
    ]
]
AWS
중재자
philaws
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전
1

The way to improve EBS performance would be to change the volume type.

Try changing form a GP2 to GP3

https://aws.amazon.com/ebs/general-purpose/

profile picture
전문가
답변함 일 년 전
profile picture
전문가
검토됨 일 년 전
  • AWS documentation says you can change the volume type on a live volume. Seems a little risky. Is it standard practice to change a live volume's type?

  • I’ve done it before without issue. I believe it’s similar to VMWare storage vmotion.

  • It is perfectly safe to modify the volume type on a mounted volume.

1

does the root volume get upgraded also?

No. EBS volume is attached to EC2 instance via network(independent). By changing instance type, network throuput b/w EC2 instance and EBS volume can get better, but IOPS throuput of EBS is same.

To optimize throuput of EBS volume, the link as follows will help you.

https://repost.aws/knowledge-center/ebs-performance

profile picture
전문가
답변함 일 년 전
  • Thanks. This makes upgrading a set of instances a little more difficult but better in the long run.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠