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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Kouta Ozaki
October 20, 2020
Programming
0
2k
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
640
開発チームにオーナーシップを委譲する手法 - DevOpsDays TOKYO 2022 #DevOpsDaysTokyo
cwozaki
0
420
Helm Chartリポジトリを2年半運用してわかったいろいろな話 - CloudNative Days Spring 2021 ONLINE #CNDO2021
cwozaki
0
660
PHP on Kubernetes - PHP Conference 2020 Re:born #phpcon
cwozaki
1
9k
ChatworkにおけるレジェンドシステムのKubernetes化の取り組み #containerdaysjp #meetup
cwozaki
1
3.3k
チャットワークにおける サーバーレス活用術 / Serverless at ChatWork
cwozaki
1
1.8k
Other Decks in Programming
See All in Programming
受け入れテスト駆動開発(ATDD)×AI駆動開発 AI時代のATDDの取り組み方を考える
kztakasaki
2
530
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
380
15年目のiOSアプリを1から作り直す技術
teakun
1
600
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
240
浮動小数の比較について
kishikawakatsumi
0
380
オブザーバビリティ駆動開発って実際どうなの?
yohfee
3
690
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
7.6k
エラーログのマスキングの仕組みづくりに役立ったASTの話
kumoichi
0
110
PostgreSQL を使った快適な go test 環境を求めて
otakakot
0
410
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
930
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
1.7k
CSC307 Lecture 12
javiergs
PRO
0
460
Featured
See All Featured
Marketing to machines
jonoalderson
1
5k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
30 Presentation Tips
portentint
PRO
1
250
Skip the Path - Find Your Career Trail
mkilby
1
72
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
200
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
980
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
240
How to train your dragon (web standard)
notwaldorf
97
6.5k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
300
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.4k
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
ಇ͘Λͬͱָ͘͠ɺతʹ