The following list summarizes EC2 best practices:
- Ensure that unused EC2 instances are stopped and, if not required, terminate them. This reduces unnecessary cost in the monthly AWS billing.
- Closely observe snapshots and AMIs, regularly perform housekeeping, and discard all the AMIs and snapshots which are not required. It is recommended you automate and monitor this process.
- Ensure that an instance type is set as per the requirement of the application hosted on the instance. It is recommended you optimize instance type as per application performance.
- To match a seasonal spike in compute requirement, plan for auto scaling and load balancing.
- Divide your application load into multiple instances rather than going for one big instance, where possible. Dividing the application workload over multiple instances, in different AZs, can avoid single point of failure.
- Ensure to use On-Demand, Spot, and Reserved Instances in the environment based on need. Balancing the instance types...