Resize – EC2 Resources
Posted on:09 Sep 2019
As per application needs you may need to resize or add your instances to auto scaling group. In this post, we will go through the prerequisites that need to be met before resizing your EC2 Instances.
Factors that leads to Resizing:
- Under- utilized
- Over – utilized
- Upgrade to current generatn instance types
Compatibility factors that need to be checked before Resizing:
- Virtualization Type
- Enhancing Networking
There are different types of Instances family provided by AWS like General Purpose, Compute Optimized, Storage Optimized , Memory Optimized and Nitro Based. So, you need to be careful while moving from one family to another.
Steps needs to be follow:
For example, prerequisites that need to be followed for any Nitro Based Instances
- Verify whether ENA enabled to your Instance.
- Validate whether ENA drivers were installed .
- Validate whether NVMe drivers were installed .
- Make sure entries in fstab file were with UUID instead of device volume name.
Note: Nitro Based Instances are
A1, C5, C5d, C5n, I3en, M5, M5a, M5ad, M5d,p3dn.24xlarge, R5, R5a, R5ad, R5d, T3, T3a, and z1d
Bare metal: c5.metal, c5n.metal, i3.metal, i3en.metal, m5.metal, m5d.metal, r5.metal, r5d.metal, u-6tb1.metal, u-9tb1.metal, u-12tb1.metal and z1d.metal
AWS Provides a script to validate whether your current Instances met the prerequisites of your new instances.
It will support only for below OS:
- RedHat derivatives
- Amazon Linux, Amazon Linux 2
- Debian derivatives
It will help to install the drivers and modify the fstab file.