SlideShare a Scribd company logo
1 of 10
5 Important Points To Remember If You
Want To Reduce AWS EC2 Cost
- Ishant Kumar
In this article of devOpsJourney , you will see 5 Important points that
can reduce AWS EC2 Cost.
1) Know resource usage of EC2 and scale down/scale up or select
suitable instance type.
There can be many use cases for this scenario :
i. If you are using EC2 instance(s) having resource capacity over demand, then
you can rethink over this and scale down the instance type.
For Example :
 You are using EC2 instance (m4.xlarge) having 16 GiB of Memory but
application is using only maximum 6 GiB of Memory. In this scenario use
m4.large instance having 8GiB of Memory . Additionally you can setup
Autoscaling for provisioning new instance if you are not sure for traffic
spikes.
ii. If your application is CPU intensive and you are using m4.xlarge having 4
vCPU then you can use c4.xlarge having same compute power ( 4vCPU ) with
lower cost.
iii. Set Autoscaling if you are not sure about traffic spikes in a month
of hours or hours of the day instead of provisioning the whole
capacity at once.
For Example : In last four-five days of months your application
expects traffic which is three-four times of traffic in normal days
then you can always set Autoscaling for this scenario. So instead of
provisioning 4 xlarge capacity of instance for a complete month,
provision one or two instances and when application will expect
high traffic, autoscaling will launch instances as per demand.
2) Update default cool-down period in autoscaling for termination of
instance.
If you have setup autoscaling and traffic spikes are irregular , then
setting long cool-down period can help you in reducing costs at
some level.
For Example: Policy is – launch one instance when average CPU
utilization is greater than 80% , and termination policy is terminate
one instance when average CPU Utilization is less than 30% , then
setting cooldown period of instance upto 50 minutes can help as
instance has been already charged for one hour its better to keep it
for close to one hour.
3) Use reserved instance if you are going to use EC2 for long time.
If you have long vision to use EC2 instance then after analyzing
capacity and resource consumption of application you can reserve
the EC2 instance. By purchasing Reserved instance you can save a
huge cost compare to on demand.
For more information : http://aws.amazon.com/ec2/purchasing-
options/reserved-instances/
4) Stop/Start EC2 instances in Dev Environment if you are a
developer/tester and not working 24×7.
Lets say If you are a developer/tester or team of developers/testers
and not using EC2 instance round the clock then better to stop the
instance when you are not using it. It may be possible that you
want some programs should be auto start when you start the
system. so for such scenarios you can write some custom scripts
which can start and configure applications at system startup.
5) Use AWS Provided services for your use case / requirements.
Use S3 for object based storage and high reliability. If you are unsure about
data limit then its better to choose S3 for storage rather than EC2. S3 is also
cheaper and reliable than having storage on running EC2.
There is no additional charge for code deployments to Amazon EC2
instances through AWS CodeDeploy. You will be charged for EC2 only and not
for AWS CodeDeploy. So its better to use CodeDeploy instead of having some
deployment service hosted on EC2.
Source : http://aws.amazon.com/codedeploy/pricing/
There is no additional charge for Amazon EC2 instances supported by
AWS OpsWorks. You pay for AWS resources (e.g. EC2 instances, EBS
volumes, Elastic IP addresses) created using OpsWorks in the same
manner as if you created them manually.
Source : http://aws.amazon.com/opsworks/pricing/
Similarly there are other services for which there is no additional
charges or minimal charges. You can leverage those services and save
the cost for hosting similar services on some EC2 instances.
Thanks
Looking Forward for your interest in DevOpsJourney.com
http://devopsjourney.com
Email us: mail@devopsjourney.com

More Related Content

What's hot

Amazon Elastic Beanstalk
Amazon Elastic BeanstalkAmazon Elastic Beanstalk
Amazon Elastic Beanstalk
Eberhard Wolff
 
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
Amazon Web Services
 

What's hot (20)

Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic BeanstalkDeploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
 
Deploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic BeanstalkDeploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic Beanstalk
 
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWSAWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
AWS Summit Stockholm 2014 – T5 – Deploy, manage and scale applications on AWS
 
AWS elastic beanstalk
AWS elastic beanstalkAWS elastic beanstalk
AWS elastic beanstalk
 
AWS OpsWorks & Chef at the Hamburg Chef User Group 2014
AWS OpsWorks & Chef at the Hamburg Chef User Group 2014AWS OpsWorks & Chef at the Hamburg Chef User Group 2014
AWS OpsWorks & Chef at the Hamburg Chef User Group 2014
 
Docker Paris #29
Docker Paris #29Docker Paris #29
Docker Paris #29
 
Amazon Elastic Beanstalk
Amazon Elastic BeanstalkAmazon Elastic Beanstalk
Amazon Elastic Beanstalk
 
Docker Paris #28
Docker Paris #28Docker Paris #28
Docker Paris #28
 
Amazon ECS (December 2015)
Amazon ECS (December 2015)Amazon ECS (December 2015)
Amazon ECS (December 2015)
 
Storing, Managing, and Deploying Docker Container Images with Amazon ECR
Storing, Managing, and Deploying Docker Container Images with Amazon ECRStoring, Managing, and Deploying Docker Container Images with Amazon ECR
Storing, Managing, and Deploying Docker Container Images with Amazon ECR
 
How to copy multiple files from local to aws s3 bucket using aws cli
How to copy multiple files from local to aws s3 bucket using aws cliHow to copy multiple files from local to aws s3 bucket using aws cli
How to copy multiple files from local to aws s3 bucket using aws cli
 
Advanced Topics - Session 2 - Introducing AWS OpsWorks
Advanced Topics - Session 2 - Introducing AWS OpsWorksAdvanced Topics - Session 2 - Introducing AWS OpsWorks
Advanced Topics - Session 2 - Introducing AWS OpsWorks
 
AWS Summit Stockholm 2014 – B1 – Building a cloud ready it team
AWS Summit Stockholm 2014 – B1 – Building a cloud ready it teamAWS Summit Stockholm 2014 – B1 – Building a cloud ready it team
AWS Summit Stockholm 2014 – B1 – Building a cloud ready it team
 
AWS Webcast - Amazon Web Services for Development and Test
AWS Webcast - Amazon Web Services for Development and TestAWS Webcast - Amazon Web Services for Development and Test
AWS Webcast - Amazon Web Services for Development and Test
 
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
TLS303 How to Deploy Python Applications on AWS Elastic Beanstalk - AWS re:In...
 
A software developer guide to working with aws
A software developer guide to working with awsA software developer guide to working with aws
A software developer guide to working with aws
 
Aws primer Amazon Web Services
Aws primer Amazon Web ServicesAws primer Amazon Web Services
Aws primer Amazon Web Services
 
Aws task 12 guruprasanth.s
Aws task 12 guruprasanth.sAws task 12 guruprasanth.s
Aws task 12 guruprasanth.s
 
AWS @designa
AWS @designaAWS @designa
AWS @designa
 
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
AWS DevOps Event - AWS Services enabling DevOps - Continuous Integration & Au...
 

Similar to 5 Important Points To Remember If You Want To Reduce AWS EC2 Cost

Similar to 5 Important Points To Remember If You Want To Reduce AWS EC2 Cost (20)

Amazon Elastic Compute Cloud
Amazon Elastic Compute CloudAmazon Elastic Compute Cloud
Amazon Elastic Compute Cloud
 
This One Weird API Request Will Save You Thousands
This One Weird API Request Will Save You ThousandsThis One Weird API Request Will Save You Thousands
This One Weird API Request Will Save You Thousands
 
Cloudreach Voices EC2 Making Sense of the Cost Options
Cloudreach Voices EC2 Making Sense of the Cost Options  Cloudreach Voices EC2 Making Sense of the Cost Options
Cloudreach Voices EC2 Making Sense of the Cost Options
 
AWS Interview Questions And Answers | AWS Solution Architect Interview Questi...
AWS Interview Questions And Answers | AWS Solution Architect Interview Questi...AWS Interview Questions And Answers | AWS Solution Architect Interview Questi...
AWS Interview Questions And Answers | AWS Solution Architect Interview Questi...
 
(CMP311) This One Weird API Request Will Save You Thousands
(CMP311) This One Weird API Request Will Save You Thousands(CMP311) This One Weird API Request Will Save You Thousands
(CMP311) This One Weird API Request Will Save You Thousands
 
Reduce Your Cloud Spending With AWS Spot Instances
Reduce Your Cloud Spending With AWS Spot InstancesReduce Your Cloud Spending With AWS Spot Instances
Reduce Your Cloud Spending With AWS Spot Instances
 
Getting Started with EC2 Spot - November 2016 Webinar Series
Getting Started with EC2 Spot - November 2016 Webinar SeriesGetting Started with EC2 Spot - November 2016 Webinar Series
Getting Started with EC2 Spot - November 2016 Webinar Series
 
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
Coding Apps in the Cloud to reduce costs up to 90% - September 2016 Webinar S...
 
Introduction to EC2
Introduction to EC2Introduction to EC2
Introduction to EC2
 
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
AWS re:Invent re:Cap - 비용 최적화 - 모범사례와 아키텍처 설계 심화편 - 이원일
 
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
Start Up Austin 2017: Don't Overspend! Cost Optimization Best Practices to Re...
 
Want to Reduce Your AWS Bill.pdf
Want to Reduce Your AWS Bill.pdfWant to Reduce Your AWS Bill.pdf
Want to Reduce Your AWS Bill.pdf
 
Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef Cost Optimization Best Practices: Rotem Yosef
Cost Optimization Best Practices: Rotem Yosef
 
Cost Optimisation on AWS
Cost Optimisation on AWSCost Optimisation on AWS
Cost Optimisation on AWS
 
Best Practices for Managing Hadoop Framework Based Workloads (on Amazon EMR) ...
Best Practices for Managing Hadoop Framework Based Workloads (on Amazon EMR) ...Best Practices for Managing Hadoop Framework Based Workloads (on Amazon EMR) ...
Best Practices for Managing Hadoop Framework Based Workloads (on Amazon EMR) ...
 
AWS Atlanta Meetup -AWS Spot Blocks and Spot Fleet
AWS Atlanta Meetup -AWS Spot Blocks and Spot FleetAWS Atlanta Meetup -AWS Spot Blocks and Spot Fleet
AWS Atlanta Meetup -AWS Spot Blocks and Spot Fleet
 
Amazon cloud intance launch3
Amazon cloud intance launch3Amazon cloud intance launch3
Amazon cloud intance launch3
 
Amazon cloud intance launch3
Amazon cloud intance launch3Amazon cloud intance launch3
Amazon cloud intance launch3
 
Amazon cloud intance launch
Amazon cloud intance launchAmazon cloud intance launch
Amazon cloud intance launch
 
Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency Running Lean Architectures: How to Optimize for Cost Efficiency
Running Lean Architectures: How to Optimize for Cost Efficiency
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

5 Important Points To Remember If You Want To Reduce AWS EC2 Cost

  • 1. 5 Important Points To Remember If You Want To Reduce AWS EC2 Cost - Ishant Kumar
  • 2. In this article of devOpsJourney , you will see 5 Important points that can reduce AWS EC2 Cost. 1) Know resource usage of EC2 and scale down/scale up or select suitable instance type. There can be many use cases for this scenario :
  • 3. i. If you are using EC2 instance(s) having resource capacity over demand, then you can rethink over this and scale down the instance type. For Example :  You are using EC2 instance (m4.xlarge) having 16 GiB of Memory but application is using only maximum 6 GiB of Memory. In this scenario use m4.large instance having 8GiB of Memory . Additionally you can setup Autoscaling for provisioning new instance if you are not sure for traffic spikes. ii. If your application is CPU intensive and you are using m4.xlarge having 4 vCPU then you can use c4.xlarge having same compute power ( 4vCPU ) with lower cost.
  • 4. iii. Set Autoscaling if you are not sure about traffic spikes in a month of hours or hours of the day instead of provisioning the whole capacity at once. For Example : In last four-five days of months your application expects traffic which is three-four times of traffic in normal days then you can always set Autoscaling for this scenario. So instead of provisioning 4 xlarge capacity of instance for a complete month, provision one or two instances and when application will expect high traffic, autoscaling will launch instances as per demand.
  • 5. 2) Update default cool-down period in autoscaling for termination of instance. If you have setup autoscaling and traffic spikes are irregular , then setting long cool-down period can help you in reducing costs at some level. For Example: Policy is – launch one instance when average CPU utilization is greater than 80% , and termination policy is terminate one instance when average CPU Utilization is less than 30% , then setting cooldown period of instance upto 50 minutes can help as instance has been already charged for one hour its better to keep it for close to one hour.
  • 6. 3) Use reserved instance if you are going to use EC2 for long time. If you have long vision to use EC2 instance then after analyzing capacity and resource consumption of application you can reserve the EC2 instance. By purchasing Reserved instance you can save a huge cost compare to on demand. For more information : http://aws.amazon.com/ec2/purchasing- options/reserved-instances/
  • 7. 4) Stop/Start EC2 instances in Dev Environment if you are a developer/tester and not working 24×7. Lets say If you are a developer/tester or team of developers/testers and not using EC2 instance round the clock then better to stop the instance when you are not using it. It may be possible that you want some programs should be auto start when you start the system. so for such scenarios you can write some custom scripts which can start and configure applications at system startup.
  • 8. 5) Use AWS Provided services for your use case / requirements. Use S3 for object based storage and high reliability. If you are unsure about data limit then its better to choose S3 for storage rather than EC2. S3 is also cheaper and reliable than having storage on running EC2. There is no additional charge for code deployments to Amazon EC2 instances through AWS CodeDeploy. You will be charged for EC2 only and not for AWS CodeDeploy. So its better to use CodeDeploy instead of having some deployment service hosted on EC2. Source : http://aws.amazon.com/codedeploy/pricing/
  • 9. There is no additional charge for Amazon EC2 instances supported by AWS OpsWorks. You pay for AWS resources (e.g. EC2 instances, EBS volumes, Elastic IP addresses) created using OpsWorks in the same manner as if you created them manually. Source : http://aws.amazon.com/opsworks/pricing/ Similarly there are other services for which there is no additional charges or minimal charges. You can leverage those services and save the cost for hosting similar services on some EC2 instances.
  • 10. Thanks Looking Forward for your interest in DevOpsJourney.com http://devopsjourney.com Email us: mail@devopsjourney.com