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
Dockerホットデプロイ運用の話 / Operations for Zero Downtim...
Search
Akira Maeda
September 21, 2016
Technology
4
3.1k
Dockerホットデプロイ運用の話 / Operations for Zero Downtime Docker Deployment
Akira Maeda
September 21, 2016
Tweet
Share
More Decks by Akira Maeda
See All by Akira Maeda
Working With Terraform
glidenote
3
9k
Sensu Deep Talks #1
glidenote
14
3.2k
vim study vol.2
glidenote
1
160
octopress
glidenote
3
3k
paperboy.el
glidenote
1
4.3k
Terminal Study vol.2
glidenote
3
6.3k
2012-04-19-mysql-casual-vol3.pdf
glidenote
0
8.6k
Other Decks in Technology
See All in Technology
デザインシステムを始めるために取り組んだこと - TechTrain x ゆめみ ここを意識してほしい!リファクタリング勉強会
kajitack
1
110
#TRG24 / David Cuartielles / Post Open Source
tarugoconf
0
590
iPadOS18でフローティングタブバーを解除してみた
sansantech
PRO
1
150
Cloudflareで実現する AIエージェント ワークフロー基盤
kmd09
0
290
色々なAWSサービス名の由来を調べてみた
iriikeita
0
110
embedパッケージを深掘りする / Deep Dive into embed Package in Go
task4233
1
220
メールヘッダーを見てみよう
hinono
0
110
Unsafe.BitCast のすゝめ。
nenonaninu
0
200
Bring Your Own Container: When Containers Turn the Key to EDR Bypass/byoc-avtokyo2024
tkmru
0
860
Building Scalable Backend Services with Firebase
wisdommatt
0
110
「人物ごとのアルバム」の精度改善の軌跡/Improving accuracy of albums by person
mixi_engineers
PRO
1
110
メンバーがオーナーシップを発揮しやすいチームづくり
ham0215
2
150
Featured
See All Featured
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.2k
Fashionably flexible responsive web design (full day workshop)
malarkey
406
66k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Unsuck your backbone
ammeep
669
57k
Why Our Code Smells
bkeepers
PRO
335
57k
Code Reviewing Like a Champion
maltzj
521
39k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Typedesign – Prime Four
hannesfritz
40
2.5k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
960
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
KATA
mclloyd
29
14k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.2k
Transcript
DockerϗοτσϓϩΠӡ༻ͷ JAWS Container #6 AKira Maeda Kaizen Platform, Inc.
I’m Akira Maeda @glidenote Kaizen Platform, Inc. ڞஶɹ αʔό/ΠϯϑϥΤϯδχΞཆಡຊ DevOpsฤ
‣ ࠂӡ༻Λվળ͢ΔαʔϏε ‣ ݄ʹЌϦϦʔε ‣ ࠂαʔϏεͳͷͰߴτϥϑΟοΫ ‣ ৴པੑɺϋΠύϑΥʔϚϯε͕ཁٻ͞ΕΔ
Kaizen Ad Infrastructure
&-# &-# &$ &$ #JH2VFSZ ैདྷͷߏ
"-# &-# &$4 &$ #JH2VFSZ ৽͍͠ߏ
ALB + ECS
‣ "-# 5BSHFU(SPVQ ͱ&$4 4FSWJDF ΛΈ߹Θͤ Δͱ%PDLFSͷϗοτσϓϩΠ͕༰қʹ࣮ݱग़དྷΔ ‣ ϩʔυόϥϯαԼͷ৽چίϯςφೖΕସ͑ΛࣗಈͰͬ ͯ͘ΕΔͷͰɺࣗલͰ࣮͠ͳͯ͘ྑ͍
3. docker push 4. ecs-deploy 5. docker pull 2. docker
build, test 1. git merge deployment branch Deploy Flow
σϓϩΠલͷঢ়ଶ
σϓϩΠޙͷঢ়ଶ
σϓϩΠྃ
αʔϏεஅແ͠ʹ ίϯςφͷೖΕସ͕͑Ͱ͖Δ
ৄ͍ͪ͜͠Βʹ http://blog.glidenote.com/blog/2016/09/02/alb-ecs-docker-hot-deploy/
ίϯςφೖΕସ͑ʹ͕͔͔࣌ؒΔ ‣ ෳίϯςφΛར༻͠ͳ͍߹ɺ͠ͳ͍ͱίϯςφͷೖ Εସ͕͑͘ɺ৽چίϯςφ͕ࠞࡏ͢Δ͕࣌ؒ͘ͳΔɻ ‣ ίϯςφʹର͢ΔΠϯελϯεɺ.JOJNVNIFBMUIZ QFSDFOUɺ.BYJNVNQFSDFOUͳͲͷௐ͕ඞཁ ‣ ݱࡏσϓϩΠϑϩʔͷதͰɺ FDTDMJTDBMFDBQBCJMJUZJBNTJ[F/
ͰσϓϩΠલʹΠϯελϯεΛഒʹ૿͠ɺσϓϩΠޙʹΠ ϯελϯεΛݩʹ͢Α͏ʹ͍ͯ͠Δɻ
͜ͷํ๏ͩͱίϯςφೖΕସ͕͍͑ Minimum healthy percent 100%, Maximum percent 200% SFGTIUUQTBXTBNB[PODPNCMPHTDPNQVUFBNB[POFDTMBVODIFTOFXEFQMPZNFOUDBQBCJMJUJFTDMPVEXBUDINFUSJDTTJOHBQPSFBOE GSBOLGVSUSFHJPOT
͜ͷํ๏ͩͱೖΕସ͑ʹ͕͔͔࣌ؒΔ Minimum healthy percent 50%, Maximum percent 100% SFGTIUUQTBXTBNB[PODPNCMPHTDPNQVUFBNB[POFDTMBVODIFTOFXEFQMPZNFOUDBQBCJMJUJFTDMPVEXBUDINFUSJDTTJOHBQPSFBOE
GSBOLGVSUSFHJPOT
ෳίϯςφ ‣ "-#ͩͱ%ZOBNJD1PSU.BQQJOHʹରԠͯ͠ ͍ΔͷͰɺෳίϯςφͩͱσϓϩΠߴԽͰ͖ Δ ‣ ͨͩσϓϩΠͷͨΊʹ৽نίϯςφͷ$16ɺϝ ϞϦͳͲͷϦιʔεΛ༨Β͓ͤͯ͘ͷͰɺϦιʔε ޮѱ͍
·ͱΊ ‣ "-# &$4Ͱ%PDLFSͷϗοτσϓϩΠ͕༰қʹ ͳͬͨ ‣ σϓϩΠ࣌ͷίϯςφೖΕସ͑ߴԽʹɺ·ͩվ ળͷ༨͕͋Δ
DockerΓ͍ͨਓ͓ͪͯ͠·͢!! https://kaizenplatform.com/hiring/engineer.html#infrastructure_engineer
Thanks!