AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례

Amazon Web Services Korea
Amazon Web Services KoreaAmazon Web Services Korea
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S E O U L | M A Y 4 , 2 0 2 3
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Multi-AZ EKS
Locality LB
(Koriel)
Site Reliability Engineer
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio Locality LB
Istio OutlierDetection
Topology Aware Hints
Agenda
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Cross-zone traffic
Latency
VPC Flog Logs
K8s Pod Metadata
AWS Athena
Visibility
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
확보
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
•Istio Ingress Gateway
•Istio Mesh
•Istiod
•Monitoring
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio Locality LB
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio Locality LB
ISTIO LOCALITY LB ?
•EKS Worker Node Topology
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio Locality LB
ISTIO LOCALITY LB ?
•Istio Proxy Config
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio Locality LB
ISTIO LOCALITY LB ?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio Locality LB
ISTIO LOCALITY LB ?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio Locality LB
ISTIO LOCALITY LB ?
•
• Istio Locality LB Traffic
• Istio OutlierDetection
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio OutlierDetection
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio OutlierDetection
ISTIO LOCALITY LB ISTIO OUTLIERDETECTION
•Virtual Service Destination Rule outlierDetection
•outlierDetection
zone zone pod
failover zone
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio OutlierDetection
ISTIO LOCALITY LB ISTIO OUTLIERDETECTION
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Istio OutlierDetection
ISTIO LOCALITY LB ISTIO OUTLIERDETECTION
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Topology Aware Hints
ISTIO POD ?
•K8s Service Topology Aware Hints Locality LB
•Endpoint Slice Hints
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Topology Aware Hints
ISTIO POD ?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
86% 98%
Istio mesh cross-zone traffic 86%
K8s service cross-zone traffic 98%
Istio Locality LB Topolgy Aware Hints
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AZ ?
• AZ failover
•
AZ a 2 , AZ c 4 AZ a AZ c 2
TopologySpreadContraints maxSkew 1
EKS default scheduler custom scheduler
• Pod
• EKS Active-Active
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Fault Injection Simulator
EKS
DevOps Engineer
LG
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
LG U+ DevOps Engineer
Backend Developer(APM)
→ DevOps Engineer
AWS
K8s
SRE
linkedin.com/in/youngjin-jung
github.com/YoungJinJung
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Fault Injection Simulator Chaos Mesh
EKS
Agenda
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Good intentions never work, you
need good mechanisms to make
anything happen
Jeff Bezos
CEO of Amazon
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
INFRASTRUCTURE
APPLICATION OPERTAION
…
Multi A-Z
Auto
Scaling
Replica and
Sharding
Dynamic
Routing
Event
Driven
Automation
IaC
Content
Caching
Timeout Monitoring Incidents
Retries with
Backoff
Monitor
Post
Mortem
Exception
Handling
Circuit
Breaker
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
WHAT WHY
,
,
HOW
(OS, ,
)
,
SPOF
/
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Chaos
Engineering
Improvement
Define
Steady State
Hypothesis
Run
Experiment
Verify
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Observability
Visibility Alerting Less time in Incident Acceleration
Observability
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Fault Injection Simulator
Chaos Mesh
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Fault Injection Simulator
03.
Integrated
Security Model
01.
Simple Setup
02.
Run Real World
Scenarios
04.
Visibility throughout
an Experiment
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS FIS
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Flexible experiment orchestration
Cloud Native and easy-to-use system
Kubernetes
High security and fully authenticated
,
Chaos Mesh ?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Chaos Mesh
Input Fault From User
• kubectl
• API
• Dashboard
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Chaos Mesh
Monitor Resource and Schedule
• Kubernetes API
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Chaos Mesh
Injection of a specific fault
• Chaos Controller Manager
•
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EKS
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
EKS
EKS
Scaling Monitoring
Deploy
Network
Mesh
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network Chaos
Network
Delay Injection
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network Chaos
Hypothesis
Network Delay
502
02 03 04 05
Run Exp.
Pod Network
Delay 300ms
Verify
Network Delay
1000ms , 502
Improve
502 , Retry
Steady State
100ms
01
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
?
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
References
• Principles of Chaos Engineering
https://principlesofchaos.org/
• Fault Injection Simulator
https://docs.aws.amazon.com/fis/latest/userguide/what-is.html
• Chaos Mesh
https://chaos-mesh.org/docs/
• AWS Well-Architected Framework - Reliability
https://wa.aws.amazon.com/wat.pillar.reliability.ko.html
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
감사합니다
© 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
1 sur 49

Contenu connexe

Tendances(20)

20190226 AWS Black Belt Online Seminar Amazon WorkSpaces20190226 AWS Black Belt Online Seminar Amazon WorkSpaces
20190226 AWS Black Belt Online Seminar Amazon WorkSpaces
Amazon Web Services Japan52.4K vues

Similaire à AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례(20)

Plus de Amazon Web Services Korea(20)

AWS Modern Infra with Storage Roadshow 2023 - Day 2AWS Modern Infra with Storage Roadshow 2023 - Day 2
AWS Modern Infra with Storage Roadshow 2023 - Day 2
Amazon Web Services Korea169 vues
AWS Modern Infra with Storage Roadshow 2023 - Day 1AWS Modern Infra with Storage Roadshow 2023 - Day 1
AWS Modern Infra with Storage Roadshow 2023 - Day 1
Amazon Web Services Korea102 vues

AWS Summit Seoul 2023 | Amazon EKS 데이터 전송 비용 절감 및 카오스 엔지니어링 적용 사례

  • 1. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. S E O U L | M A Y 4 , 2 0 2 3
  • 2. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Multi-AZ EKS Locality LB (Koriel) Site Reliability Engineer
  • 3. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio Locality LB Istio OutlierDetection Topology Aware Hints Agenda
  • 4. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Cross-zone traffic Latency VPC Flog Logs K8s Pod Metadata AWS Athena Visibility
  • 6. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 확보
  • 7. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 8. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. •Istio Ingress Gateway •Istio Mesh •Istiod •Monitoring
  • 9. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio Locality LB
  • 10. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio Locality LB ISTIO LOCALITY LB ? •EKS Worker Node Topology
  • 11. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio Locality LB ISTIO LOCALITY LB ? •Istio Proxy Config
  • 12. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio Locality LB ISTIO LOCALITY LB ?
  • 13. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio Locality LB ISTIO LOCALITY LB ?
  • 14. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio Locality LB ISTIO LOCALITY LB ? • • Istio Locality LB Traffic • Istio OutlierDetection
  • 15. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio OutlierDetection
  • 16. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio OutlierDetection ISTIO LOCALITY LB ISTIO OUTLIERDETECTION •Virtual Service Destination Rule outlierDetection •outlierDetection zone zone pod failover zone
  • 17. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio OutlierDetection ISTIO LOCALITY LB ISTIO OUTLIERDETECTION
  • 18. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Istio OutlierDetection ISTIO LOCALITY LB ISTIO OUTLIERDETECTION
  • 19. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Topology Aware Hints ISTIO POD ? •K8s Service Topology Aware Hints Locality LB •Endpoint Slice Hints
  • 20. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Topology Aware Hints ISTIO POD ?
  • 21. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 22. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. ?
  • 23. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 86% 98% Istio mesh cross-zone traffic 86% K8s service cross-zone traffic 98% Istio Locality LB Topolgy Aware Hints
  • 24. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AZ ? • AZ failover • AZ a 2 , AZ c 4 AZ a AZ c 2 TopologySpreadContraints maxSkew 1 EKS default scheduler custom scheduler • Pod • EKS Active-Active
  • 25. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Fault Injection Simulator EKS DevOps Engineer LG
  • 26. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. LG U+ DevOps Engineer Backend Developer(APM) → DevOps Engineer AWS K8s SRE linkedin.com/in/youngjin-jung github.com/YoungJinJung
  • 27. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Fault Injection Simulator Chaos Mesh EKS Agenda
  • 28. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Good intentions never work, you need good mechanisms to make anything happen Jeff Bezos CEO of Amazon
  • 29. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 30. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 31. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. INFRASTRUCTURE APPLICATION OPERTAION … Multi A-Z Auto Scaling Replica and Sharding Dynamic Routing Event Driven Automation IaC Content Caching Timeout Monitoring Incidents Retries with Backoff Monitor Post Mortem Exception Handling Circuit Breaker
  • 32. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 33. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. WHAT WHY , , HOW (OS, , ) , SPOF /
  • 34. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Chaos Engineering Improvement Define Steady State Hypothesis Run Experiment Verify
  • 35. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Observability Visibility Alerting Less time in Incident Acceleration Observability
  • 36. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Fault Injection Simulator Chaos Mesh
  • 37. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Fault Injection Simulator 03. Integrated Security Model 01. Simple Setup 02. Run Real World Scenarios 04. Visibility throughout an Experiment
  • 38. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS FIS
  • 39. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Flexible experiment orchestration Cloud Native and easy-to-use system Kubernetes High security and fully authenticated , Chaos Mesh ?
  • 40. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Chaos Mesh Input Fault From User • kubectl • API • Dashboard
  • 41. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Chaos Mesh Monitor Resource and Schedule • Kubernetes API
  • 42. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Chaos Mesh Injection of a specific fault • Chaos Controller Manager •
  • 43. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. EKS
  • 44. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. EKS EKS Scaling Monitoring Deploy Network Mesh
  • 45. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Network Chaos Network Delay Injection
  • 46. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Network Chaos Hypothesis Network Delay 502 02 03 04 05 Run Exp. Pod Network Delay 300ms Verify Network Delay 1000ms , 502 Improve 502 , Retry Steady State 100ms 01
  • 47. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. ?
  • 48. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. References • Principles of Chaos Engineering https://principlesofchaos.org/ • Fault Injection Simulator https://docs.aws.amazon.com/fis/latest/userguide/what-is.html • Chaos Mesh https://chaos-mesh.org/docs/ • AWS Well-Architected Framework - Reliability https://wa.aws.amazon.com/wat.pillar.reliability.ko.html
  • 49. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. 감사합니다 © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved.