Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS DevDay 2020 - C-8: レジェンドシステムをEC2からKuberne...
Search
Kouta Ozaki
October 20, 2020
Programming
0
1.6k
AWS DevDay 2020 - C-8: レジェンドシステムをEC2からKubernetesに置き換える戦い #AWSDevDay
#AWSDevDay
Kouta Ozaki
October 20, 2020
Tweet
Share
More Decks by Kouta Ozaki
See All by Kouta Ozaki
サーバーレスを採用すべき100の理由(1つしか話さないよ)
cwozaki
3
480
開発チームにオーナーシップを委譲する手法 - DevOpsDays TOKYO 2022 #DevOpsDaysTokyo
cwozaki
0
310
Helm Chartリポジトリを2年半運用してわかったいろいろな話 - CloudNative Days Spring 2021 ONLINE #CNDO2021
cwozaki
0
550
PHP on Kubernetes - PHP Conference 2020 Re:born #phpcon
cwozaki
1
8.2k
ChatworkにおけるレジェンドシステムのKubernetes化の取り組み #containerdaysjp #meetup
cwozaki
1
2.9k
チャットワークにおける サーバーレス活用術 / Serverless at ChatWork
cwozaki
1
1.6k
Other Decks in Programming
See All in Programming
Итераторы в Go 1.23: зачем они нужны, как использовать, и насколько они быстрые?
lamodatech
0
700
開発者とQAの越境で自動テストが増える開発プロセスを実現する
92thunder
1
180
14 Years of iOS: Lessons and Key Points
seyfoyun
1
770
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
250
Beyond ORM
77web
2
290
MCP with Cloudflare Workers
yusukebe
2
220
プロダクトの品質に コミットする / Commit to Product Quality
pekepek
2
770
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
700
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
tidymodelsによるtidyな生存時間解析 / Japan.R2024
dropout009
1
760
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
110
創造的活動から切り拓く新たなキャリア 好きから始めてみる夜勤オペレーターからSREへの転身
yjszk
1
130
Featured
See All Featured
BBQ
matthewcrist
85
9.4k
Music & Morning Musume
bryan
46
6.2k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Code Reviewing Like a Champion
maltzj
520
39k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
Building Applications with DynamoDB
mza
91
6.1k
Documentation Writing (for coders)
carmenintech
66
4.5k
Fireside Chat
paigeccino
34
3.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
48
2.2k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Optimising Largest Contentful Paint
csswizardry
33
3k
Transcript
© 2020, Amazon Web Services, Inc. or its affiliates. All
rights reserved. In Partnership with C-8: ϨδΣϯυγεςϜΛEC2͔Β Kubernetesʹஔ͖͑Δઓ͍ ඌ࡚ ߞଟ Chatworkגࣜձࣾ
ొஃऀհ 2 ▸ Kouta Ozaki @k_kinzal k-kinzal ▸ Chatwork, YAML
Engineer
Chatworkͱ 3 ޮతʹใڞ༗Ͱ͖Δ άϧʔϓνϟοτ ࣄͷݟ͑ΔԽ͕Ͱ͖Δ λεΫཧ ݟམͱ͕͠ͳ͘ͳΔ ϑΝΠϧڞ༗ ͍ͭͰձ͕ٞͰ͖Δ ϏσΦ/Ի௨
Chatworkຊ࠷େڃͷϏδωενϟοταʔϏε 4 3݄ ϦϦʔε 28.5ສࣾ ಥഁʂ 20ສࣾ ಥഁʂ ಋೖࣾ28.5ສࣾΛಥഁʂ (202009݄࣌)
10ສࣾ ಥഁʂ
01 ϨδΣϯυγεςϜͱ
ϨδΣϯυγεςϜͱ 6 ChatworkΛࢧ͑ଓ͚ͨPHPͷڊେͳϞϊϦε
02 ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 8 100 PR / month ʢ2017࣌ʣ
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 9 5~10% rollback ʢ2017࣌ʣ
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 10
VERIFY FIX IDENTIFY ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 11 DETECT MTTR MTTI MTTD
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 12
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 13
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 14
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 15 https://blog-ja.chatwork.com/2017/06/chatworkaws-dev-day.html
ChatworkͳͥEKSͷஔ͖͑Λܾஅͨ͠ͷ͔ 16 1.ঢ়ଶΛ࣋ͨͳ͍ 2.ߴͳೖΕସ͑
03 EC2͔ΒEKSͷҠߦઓུ
18 ? Golden AMI ϨδΣϯυγεςϜͷ༷Խ
ϨδΣϯυγεςϜͷ༷Խ 19 Golden AMI PHP-FPM NGINX ... Serverspec Infrataster
ϨδΣϯυγεςϜͷ༷Խ 20 New AMI ... ... ... Old AMI Ansible
Serverspec ... ... ... Packer
EC2͔ΒEKSͷΓସ͑ํ๏ 21
EKSͷΞοϓάϨʔυઓུ 22
04 EKS্ʹߏஙͨ͠ΞϓϦέʔγϣϯͷߏ
EKS্ʹߏஙͨ͠ΞϓϦέʔγϣϯͷߏ 24
EKS্ʹߏஙͨ͠ΞϓϦέʔγϣϯͷϦϦʔεϑϩʔ 25
05 Ҡߦʹͱͳ͏ChatworkͷαʔϏεఀࢭࣄྫ
5%ϦϦʔεࣄ݅ 27 Weight: 5 Weight: 5 = 50%!?
400k rpmͷ߈ 28
400k rpmͷ߈ 29
DNSͷ͍߹ΘͤΤϥʔ 30
DNSͷ͍߹ΘͤΤϥʔ 31
ALB Ingress ControllerͱAPI Call Limitͷઓ͍ 32
06 ·ͱΊ
·ͱΊ 1. ϨδΣϯυίπίπటष͘Δ͔͠ͳ͍ 2. ίπίπΕͳ͚Εࢮ͵ 34
ಇ͘Λͬͱָ͘͠ɺతʹ