Weitere ähnliche Inhalte
Ähnlich wie Amazon EC2 Strategie per l'ottimizzazione dei costi (20)
Mehr von Amazon Web Services (20)
Amazon EC2 Strategie per l'ottimizzazione dei costi
- 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost optimization for Amazon EC2
Alessandro Gambirasio – Technical Account Manager
A W S S u m m i t M i l a n o
- 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
What you’ll get out of this session
Best practices on how to lower your Amazon Web Services EC2 bill
AWS tools supporting EC2 cost optimization
New features and enhancements about cost efficiency
- 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 foundations
Resources
Instances
Storage
Networking
Availability
Regions and AZs
Placement Groups
Load Balancing
Auto Scaling
Management
Deployment
Monitoring
Administration
Purchase Options
On Demand
Reserved
Spot
- 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Using AWS efficiently
Use cloud efficiently for new and existing applications
Elasticity
make use of the elasticity;
turn instances on and off
based on demand
Right size
workloads to downsize
and right size
Be flexible
about purchase options,
instance types, and AZs
https://github.com/awslabs/aws-well-architected-labs/tree/master/Cost/Cost_Fundamentals
- 5. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
- 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Continued rapid pace of innovation
Instance growth
instances
2007 2018
Nitro for Networking
C5 and M5 Nitro
instances
- 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Broadest and deepest platform choice
Categories Capabilities Options
Choice of processor
(AWS, Intel, AMD)
Fast processors
(up to 4.0 GHz)
High memory footprint
(up to 12 TiB)
Instance storage
(HDD and NVMe)
Networking
(up to 100 Gbps)
Accelerated computing
(GPUs and FPGA)
Bare Metal
Size
(Nano to 32xlarge)
Amazon Elastic
Block Store
Elastic Inference
Elastic Graphics+ + =
Compute intensive
Memory intensive
Burstable
Storage (High I/O)
Dense storage
GPU compute
Graphics intensive
General purpose
175instance types
for virtually
every workload
and business need
- 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Global AWS infrastructure and pricing
Product
Dublin
eu-west-1 ($/hr)
Frankfurt
eu-central-1 ($/hr)
North Virginia
us-east-1 ($/hr)
M5.4xlarge (linux OD) $0.856000 $0.920000 $0.768000
20 geographic regions
A region is a physical location
in the world where we have
multiple Availability Zones
61 Availability Zones
Distinct locations that are
engineered to be insulated
from failures in other
Availability Zones
- 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Global AWS infrastructure and pricing
https://aws.amazon.com/ec2/pricing/
- 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Global AWS infrastructure and pricing
https://pricing.us-east-1.amazonaws.com/offers/v1.0/aws/AmazonEC2/current/eu-west-1/index.json
Service Region
"6XFQ6XSA67XASQM5" : {
"productFamily" : "Compute Instance",
"attributes" : {
"servicecode" : "AmazonEC2",
"instanceType" : "m5.24xlarge",
"vcpu" : "96",
"physicalProcessor" : "Intel Xeon Platinum 8175",
"clockSpeed" : "2.5 GHz",
"memory" : "384 GiB",
"networkPerformance" : "25 Gigabit",
"processorArchitecture" : "64-bit",
"operatingSystem" : "Linux",
"dedicatedEbsThroughput" : "12000 Mbps",
"ecu" : "345",
"processorFeatures" : "Intel AVX, Intel AVX2, Intel AVX512, Intel Turbo",
}
https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/price-changes.html
- 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 purchase options
On-Demand
Pay for compute capacity
by the second with no
long-term commitments
Reserved Instances
Make a 1- or 3-year commitment
and receive a significant discount
off On-Demand prices
Spot Instances
Spare Amazon EC2 capacity at
savings of up to 90%
off On-Demand prices
Hibernate for On-Demand
- 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Ec2 Reserved Instances
Discount up to
75% off the OD
rate
Steady-state
committed
1 and 3
years terms
Amazon EC2 Reserved Instances (RI) provide a significant discount
compared to On-Demand (OD) pricing.
Multiple
payment
Options
- 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Ec2 Reserved Instances - Recommendations
gambiraa$ aws ce get-reservation-purchase-recommendation --service 'Amazon Elastic Compute Cloud - Compute'
https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-api.html
- 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
To optimize Amazon Ec2, combine purchase options
Use RIs for known,
steady-state workloads
Scale using Spot for fault-
tolerant, flexible, stateless
workloads
On-Demand, for new or
stateful spiky workloads
- 15. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
- 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Fleet
Benefits
Reduce costs
Increase operational efficiency
Key features
Flexible capacity allocation
Massive scale
Simplified provisioning
Spot
Instances
On-Demand
Instances
On-Demand
Instances
Spot
Instances
Reserved
Instances
Reserved
Instances
AZ1 AZ2
Use all three purchase options to optimize costs
Automatic optimization behind the scenes with machine
learning
Instant Fleets: Drop-In
replacement for RunInstances
Reduce development effort
- 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Save up to 90% using EC2 Auto Scaling
Automatically scale instances across instance families
and purchase options in a single ASG
Lowest cost
Amazon EC2
Auto Scaling
On-Demand Instances
Spot Instances
Reserved Instances
- 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Predictive scaling in EC2 Auto Scaling
Machine learning technology behind the scenes
Machine
learning model
Billions of data points
from Amazon.com
Load metric
and forecasts
next two days based on
the pre-trained model
Performs
regression analysis
between load metric
and scaling metric
Schedules
scaling actions
for the next
two days, hourly
Repeats
every day
Capacity provisioning On-Premises Capacity provisioning with Dynamic
Scaling
Capacity provisioning with Predictive Scaling and
Dynamic Scaling
Time
Load/Capacity
Time
Load/Capacity
Time
Load/Capacity
Provisioned Capacity Actual Capacity Demand
- 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Turn off unused instances
Developer, test, training instances out of business hours.
Monday Friday End of vacation season
Ec2Hours
35% saved
- 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Always Off by default
Thousands of
Ec2 hours
Ec2Hours
Dev/test off out
of business hours
Dev/test off
by default
- 21. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Automate your instance start/stop cycle
AWS SDKs
AWS Command Line Interface
AWS CloudFormation
AWS Autoscaling
Ec2 scheduler
Cloud custodian
Netflix Janitor Monkey
- 22. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
- 23. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Trusted Advisor
- 24. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Dive deep with AWS Cost Explorer—Now with API!
- 25. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Set up your AWS budget
https://aws.amazon.com/it/aws-cost-management/aws-budgets/
- 26. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost and Usage Report
https://github.com/awslabs/aws-well-architected-labs/tree/master/Cost/Cost_Fundamentals
- 27. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost and Usage Report
https://docs.aws.amazon.com/aws-technical-content/latest/cost-optimization-laying-the-foundation/tagging.html
- 28. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cost and Usage Report
https://github.com/awslabs/aws-well-architected-labs/tree/master/Cost/Cost_Fundamentals
- 29. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Summary: Putting it all together
1. Turn off unused instances
2. Pick the right family/size for your Ec2 instances
3. Use EC2 Auto Scaling and other automation
4. Use a combination of multiple purchase options
5. Improve visibility and allocation for your costs
- 30. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
ENEL: mainframe migration onto AWS
Furio Menichelli – Enel
A W S S u m m i t M i l a n o
- 31. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enel at a glance
- 32. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
IT strategy launched in 2015
Data Center Transformation
Razionalizz. portafoglio applicativo
Modello di servizio
Innovazione e digitalizzazione
Persone
Rivoluzione digitale
- 33. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enel mainframe environment status quo
130
Flussi dati con l’esterno
4.2 ML
Dataset su nastro
55.000
Tipologie di report
1.7 ML
Report
4.000
Reti di schedulazione fasi elaborative
60.000
JCL/Script comandi
1.000
Programmi Cobol
- 34. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Enel mainframe porting’s achievements
Ottenuta importante razionalizzazione delle applicazioni
Ridotti i costi in maniera consistente (80-85%)
Preservati investimenti di decenni sulle applicazione legacy
Preservate le business logic delle applicazioni – ove opportuno
Acquisita flessibilità e migliorato il time-to-market
- 35. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
4.2 ML Dataset su nastro
Di cui 40.000 migrati
55.000 Tipologie di report
di cui 700 conservate
1.7 ML Report
di cui 200.000 migrati
4.000 Reti di schedulazione fasi elaborative
2800 migrate, 1200 oggetto di re-engineering
60.000 JCL/Script comandi
40.000 oggetto di
porting/reengineering
1.000 Programmi Cobol
625 rehosting 375
reengineering
Enel mainframe porting’s achievements
- 36. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The journey to the cloud
1 2 3 Cloud valorization
Cloud first
Hybrid
cloud
Cloud
Only
• Focus new applications
• Migration of existing
technologies
• Full adoption: 100% on
Cloud & closing
internal Data Centers
by end 2019-04
Cloud exploration Cloud migration
2015 2015-2016 2017-2018
~10.000 server
~6PB storage
~1.000 applications
~18.000 server
~17PB storage
~1.400 applications
on
Cloud
on
Cloud
~150 server
~40TB storage
~20 applications
on
Cloud
IaaS: 90%
SaaS: 6,4%
Paas: 1%
On Premises: 2,6%
January 2019
- 37. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
The journey to the cloud
Migliorata disponibilità infrastrutture IT, sicurezza, Disaster Recovery
Ridotti i costi operativi unitari: dall'11% al 21% di risparmi per la
capacità computazionale, dal 21% al 61% per lo storage
Ridotto il tempo di approvvigionamento nuove infrastrutture: da mesi
a ore
Automatizzato oltre il 60% delle richieste di servizio
- 38. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.