Escolar Documentos
Profissional Documentos
Cultura Documentos
CMP202
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
1
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
2
9/19/18
70 2017 launches:
60
• Compute optimized: C5, M5
23
• I/O optimized: I3, H1
• Programmable/FPGAs: F1
12 13
11
5
7 • Bare metal: I3.metal (Preview)
3
2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
M5 C5 T3 D2 I3/I4 G2 R3/R4
M4 C4 T2 P3 X1
3
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2: Famílias
Instance generation
c5.xlarge
Instance family Instance size
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
4
9/19/18
≈ ≈ ≈
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
75% economia
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
5
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
6
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2: Ligar/Desligar
Mês de 30 dias:
30 dias x 24h = 720 horas (100%)
Fim de semana:
08 dias x 24h = 192 horas ( ~26%)
Horario Comercial ( 7:00 às 19:00):
22 dias x 12h = 264 horas ( ~36%)
~ 62%
Horario Não Comercial:
22 dias x 12h = 264 horas ( ~36%)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
7
9/19/18
Open Source
• Jenkins
• Rundeck
• Linux Crontab
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
8
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
9
9/19/18
66x
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
32 ut
e
Memory (GB)
omp /O
C I
16 ter igh
lus d H
C an
se
8 rpo
Pu
al
4 ner U
CP
Ge High
2
o
1 no Mi
cr
Na
1 2 4 8 16 32 64 128
10
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Recomendado para
Desconto de até 75% 1 ano (payback 7-9 meses)
aplicações que estão
vs On Demand 3 anos (payback 10-18 meses)
sempre ligadas
11
9/19/18
Multi-AZ
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EC2 Pricing
https://aws.amazon.com/ec2/pricing/reserved-instances/pricing/
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
12
9/19/18
Reserved Instance: 1 yr
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Reserved Instance: 1 yr
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
13
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
42%
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
14
9/19/18
62%
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
15
9/19/18
≈ ≈ ≈
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
16
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Spot: capacidade ociosa de EC2 que a AWS pode interromper após uma
notificação de 2 minutos
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
17
9/19/18
Shared
AZ1 Dedicated
AZ2 Shared
Dedicated
P2 C5 M5 I2 R4 D2
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
18
9/19/18
EC2 Spot
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
19
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
20
9/19/18
Por que?
• Transparência de gastos
Env = prod
• Alocação interna para o time correto
Env = test
Como fazer?
• Definir tags estratégicas (centro de custo, owner,
App = orders
ambiente, etc)
• Configurar tags estratégicas como mandatórias
• Automatizar
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
21
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Ferramentas disponíveis
Cost Optimization:
EC2 Right Sizing
https://aws.amazon.com/answers/account-management/cost-optimization-ec2-right-sizing/
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
22
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
https://discuss.newrelic.com/t/relic-solution-show-me-where-im-spending-the-money-aws-billing-new-relic/50451
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
23
9/19/18
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
24
9/19/18
Repetir / Repetir
Obrigado!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
25
9/19/18
COST
COST
26
9/19/18
COST
COST
On- Lift & Instance Improved Measure, Optimized Storage Serverless Managed
Premises Shift Right- Elasticity Monitor, EC2 Optimization Architecture Services
Sizing Improve
27
9/19/18
COST
On- Lift & Instance Improved Measure, Optimized Storage Serverless Managed True AWS
Premises Shift Right- Elasticity Monitor, EC2 Optimization Architecture Services Optimized
Sizing Improve
E cono
mic C
ase Im
prov e
s thro
ugh O
ptimiz
ation
COST
On- Lift & Instance Improved Measure, Optimized Storage Serverless Managed True AWS
Premises Shift Right- Elasticity Monitor, EC2 Optimization Architecture Services Optimized
Sizing Improve
28
9/19/18
E cono
mic C
ase Im
prov e
s thro
ugh O
ptimiz
ation
COST
Typical TCO
Comparison
On- Lift & Instance Improved Measure, Optimized Storage Serverless Managed True AWS
Premises Shift Right- Elasticity Monitor, EC2 Optimization Architecture Services Optimized
Sizing Improve
Obrigado!
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
29