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
450
開発チームにオーナーシップを委譲する手法 - DevOpsDays TOKYO 2022 #DevOpsDaysTokyo
cwozaki
0
290
Helm Chartリポジトリを2年半運用してわかったいろいろな話 - CloudNative Days Spring 2021 ONLINE #CNDO2021
cwozaki
0
530
PHP on Kubernetes - PHP Conference 2020 Re:born #phpcon
cwozaki
1
8.1k
ChatworkにおけるレジェンドシステムのKubernetes化の取り組み #containerdaysjp #meetup
cwozaki
1
2.8k
チャットワークにおける サーバーレス活用術 / Serverless at ChatWork
cwozaki
1
1.6k
Other Decks in Programming
See All in Programming
Why I Choose NetBeans for Jakarta EE
ivargrimstad
0
320
Compose Multiplatform과 Ktor로 플랫폼의 경계를 넘어보자
kwakeuijin
0
280
データサイエンスのフルサイクル開発を実現する機械学習パイプライン
xcnkx
2
510
ポケモンで考えるコミュニケーション / Communication Lessons from Pokémon
mackey0225
4
180
Micro Frontends for Java Microservices - dev2next 2024
mraible
PRO
0
210
Serverless renderování Webových komponent
rarous
PRO
0
110
DjangoNinjaで高速なAPI開発を実現する
masaya00
1
530
Cloud Adoption Frameworkにみる組織とクラウド導入戦略(縮小版)
tomokusaba
1
230
Scan with Decoupled Look-back and Onesweep Radix Sort
shocker_0x15
0
110
게임 개발하던 학생이이 세계에선 안드로이드 개발자?
pangmoo
0
110
Cancel Next.js Page Navigation: Full Throttle
ypresto
1
210
型付きで行うVSCode拡張機能開発 / VSCode Meetup #31
mazrean
0
240
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
31
2.8k
How STYLIGHT went responsive
nonsquared
95
5.1k
Done Done
chrislema
181
16k
Clear Off the Table
cherdarchuk
91
320k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Why Our Code Smells
bkeepers
PRO
334
57k
Optimizing for Happiness
mojombo
375
69k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.6k
From Idea to $5000 a Month in 5 Months
shpigford
381
46k
Teambox: Starting and Learning
jrom
132
8.7k
Art, The Web, and Tiny UX
lynnandtonic
296
20k
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
ಇ͘Λͬͱָ͘͠ɺతʹ