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
2k
0
Share
AWS DevDay 2020 - C-8: レジェンドシステムをEC2からKubernetesに置き換える戦い #AWSDevDay
#AWSDevDay
Kouta Ozaki
October 20, 2020
More Decks by Kouta Ozaki
See All by Kouta Ozaki
サーバーレスを採用すべき100の理由(1つしか話さないよ)
cwozaki
3
670
開発チームにオーナーシップを委譲する手法 - DevOpsDays TOKYO 2022 #DevOpsDaysTokyo
cwozaki
0
430
Helm Chartリポジトリを2年半運用してわかったいろいろな話 - CloudNative Days Spring 2021 ONLINE #CNDO2021
cwozaki
0
680
PHP on Kubernetes - PHP Conference 2020 Re:born #phpcon
cwozaki
1
9.1k
ChatworkにおけるレジェンドシステムのKubernetes化の取り組み #containerdaysjp #meetup
cwozaki
1
3.3k
チャットワークにおける サーバーレス活用術 / Serverless at ChatWork
cwozaki
1
1.8k
Other Decks in Programming
See All in Programming
運転動画を検索可能にする〜Cosmos-Embed1とDatabricks Vector Searchで〜/cosmos-embed1-databricks-vector-search
studio_graph
1
630
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
160
KMP × Kotlin 2.3 - How Android Got Slower While iOS Builds Improved by 47%
rio432
0
110
第3木曜LT会 #28
tinykitten
PRO
0
120
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
JAWS-UG横浜 #100 祝・第100回スペシャルAWS は VPC レスの時代へ
maroon1st
0
210
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
460
Don't Prompt Harder, Structure Better
kitasuke
0
800
t *testing.T は どこからやってくるの?
otakakot
1
880
Running Swift without an OS
kishikawakatsumi
0
870
Liberating Ruby's Parser from Lexer Hacks
ydah
2
2.5k
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
1.1k
Featured
See All Featured
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
160
Statistics for Hackers
jakevdp
799
230k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Chasing Engaging Ingredients in Design
codingconduct
0
180
The Cult of Friendly URLs
andyhume
79
6.9k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
360
Design in an AI World
tapps
1
210
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
54k
The Curse of the Amulet
leimatthew05
1
12k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
730
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
ಇ͘Λͬͱָ͘͠ɺతʹ