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
Exploring: Partial and Independent Composables
blackbracken
0
100
fs2-io を試してたらバグを見つけて直した話
chencmd
0
240
MCP with Cloudflare Workers
yusukebe
2
220
KubeCon + CloudNativeCon NA 2024 Overviewat Kubernetes Meetup Tokyo #68 / amsy810_k8sjp68
masayaaoyama
0
260
Haze - Real time background blurring
chrisbanes
1
520
SymfonyCon Vienna 2025: Twig, still relevant in 2025?
fabpot
3
1.2k
「Chatwork」Android版アプリを 支える単体テストの現在
okuzawats
0
180
Kaigi on Railsに初参加したら、その日にLT登壇が決定した件について
tama50505
0
100
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
7
1.4k
GitHubで育つ コラボレーション文化 : ニフティでのインナーソース挑戦事例 - 2024-12-16 GitHub Universe 2024 Recap in ZOZO
niftycorp
PRO
0
100
毎日13時間もかかるバッチ処理をたった3日で60%短縮するためにやったこと
sho_ssk_
1
210
php-conference-japan-2024
tasuku43
0
330
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
45
7k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
Scaling GitHub
holman
458
140k
GraphQLとの向き合い方2022年版
quramy
44
13k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Side Projects
sachag
452
42k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Statistics for Hackers
jakevdp
796
220k
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
ಇ͘Λͬͱָ͘͠ɺతʹ