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
ECS Fargateを本番投入して得た悲喜交交
Search
kazuhiro Tashiro
March 20, 2019
Technology
2
3.8k
ECS Fargateを本番投入して得た悲喜交交
kazuhiro Tashiro
March 20, 2019
Tweet
Share
More Decks by kazuhiro Tashiro
See All by kazuhiro Tashiro
増えすぎたマイクロサービスをモジュラーモノリスに移行しているお話
masaaania
3
3.5k
Other Decks in Technology
See All in Technology
Re:Define 可用性を支える モニタリング、パフォーマンス最適化、そしてセキュリティ
pyama86
9
4.6k
PaaSの歴史と、 アプリケーションプラットフォームのこれから
jacopen
7
1.7k
FinJAWS_reinvent2024_recap_database
asahihidehiko
2
310
信頼性を支えるテレメトリーパイプラインの構築 / Building Telemetry Pipeline with OpenTelemetry
ymotongpoo
9
4.1k
20250122_FinJAWS
takuyay0ne
2
340
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
10
120k
サーバレスの未来〜The Key to Simplifying Everything〜
kawaji_scratch
2
330
TSのコードをRustで書き直した話
askua
4
980
MicrosoftのOSSだけでAIによるブラウザテストを構成する
ymd65536
1
220
Enhancing SRE Using AI
yoshiiryo1
1
110
ObservabilityCON on the Road Tokyoの見どころ
hamadakoji
0
110
Tech Blog執筆のモチベート向上作戦
imamura_ko_0314
0
600
Featured
See All Featured
Raft: Consensus for Rubyists
vanstee
137
6.7k
Being A Developer After 40
akosma
89
590k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
BBQ
matthewcrist
85
9.4k
Speed Design
sergeychernyshev
25
750
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
GraphQLとの向き合い方2022年版
quramy
44
13k
A better future with KSS
kneath
238
17k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
192
16k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Transcript
&$4'BSHBUFΛຊ൪ೖ ͯ͠ಘͨ൵تަަ Tashiro Kazuhiro 2019.03.20 JAWS-UG ίϯςφࢧ෦ #14 Cyberagent inc.
ࣗݾհ Cyberagent inc. ˌ$BSSFS $ZCFS"HFOU৽ଔೖࣾ dήʔϜࣄۀ෦ ɹɹdٕज़ຊ෦։ൃج൫άϧʔϓ ɹɹdOPXٕज़ຊ෦0QFO4BB44UVEJP ˌ)PCCZ ݈߁ϥϯυɺમ౬ɺԹઘɺՈ෩࿊
ɹ
ࠓ͢͜ͱ Cyberagent inc. 'BSHBUFɺຊ൪ͬͯΈͨ ͋ɺͳ͔ͳ͔ࣂ͍ͳΒͤͳ͍
ࠓ͢͜ͱ Cyberagent inc. ͍Ζ͍Ζʹग़ձ͏͚Ͳ 'BSHBUFͱ͏·͍͖͍͔ͬͯͨ͘Β͕ΜͬͯΔΑ
ίϯςΫετڞ༗ɺ͠·͠ΐ͏͔ Cyberagent inc. ͚ࣾ՝ܾۚࡁج൫ͷ։ൃ
ίϯςΫετڞ༗ɺ͠·͠ΐ͏͔ Cyberagent inc. ɾ"84 ɾ&$4'BSHBUF "VSPSB 4/4 424 4 ɾϚΠΫϩαʔϏεΞʔΩςΫνϟ
ɾαʔόʔαΠυ,PUMJO ɾ4QSJOH#PPU ɾ%BUBEPHʢϝτϦΫεࢹ "1. ϩάूʣ
&$UZQFͱൺֱͨ͠&$4'BSHBUF Cyberagent inc.
&$UZQFͱൺֱͨ͠'BSHBUF Cyberagent inc. ɾϝϦοτ ɹͳΜͱ͍ͬͯαʔόʔϨεɻ ɹ&$ͷཧ͠ͳ͍͍ͯ͘ʂʂ ɹ ɾσϝϦοτ ɹ&$ʹTTIͯ͠ίϯςφͷ༷ࢠΛݟΕͳ͍ɻ ɹىಈ͕͍ɻ
ɹ'BSHBUFʹରԠ͍ͯ͠ͳ͍ػೳɾπʔϧ͕ଟ͍ɻ
ۤ͠ΜͩϙΠϯτ Cyberagent inc. ىಈ͕͍ ɹ&-#ϔϧενΣοΫʹ&$4λεΫ͕ࡴΒΕΔ TTIͰதʹೖΕͳ͍ ɹෆ۩߹͕ى͖ͨ࣌ʹௐࠪ͢Δ͜ͱ͕Ͱ͖ͳ͍ ɹϝϞϦϦʔΫͷௐ͕͔ࠪͬͨ͠
&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc.
&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ɾݱ ͋Δಥવ&$4λεΫ্ཱ͕͕ͪΒͳ͘ͳͬͨɻ ͋Εɺੜ͖ࢮʹΛ܁Γฦͯ͠Δʁ VOIFBMUIZͳ&$4λεΫεοͱఀࢭ͞Εɺॗʑͱ࠶ىಈΛ͠ɺ࠶ͼ ఀࢭ͞ΕΔ
&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ɾ࣌ͷࢲͷԠ ΞϓϦʹແ͍ͣɻɻ৴ڼ৺͕Γͳ͍͔Β͔ɻɻ
&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ࣌ɺͭͷλεΫʹͭͷίϯςφͱ͍͏ߏ͔Βɺ αΠυΧʔΛ͏ߏʹม͑ͨλΠϛϯάͩͬͨɻ ʢ͜Ε͕ىಈ࣌ؒΛେ෯ʹΒͤͨɻϦιʔεΛ৯͍߹͏ͷ͔ɻʣ container B container A
Task A container A Task A ىಈ͕࣌ؒ͗ͯ͢&-#ʹVOIFBMUIZͱஅ͞Ε͍ͯΔʂ
&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ɾॿ͚सɿ✨ϔϧενΣοΫͷ༛༧ظؒ✨ &$4ͷαʔϏεઃఆͰมߋՄೳɻ
&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. ҟৗͳঢ়ଶͷ&$4λεΫεοͱఀࢭ͞Εɺॗʑͱ࠶ىಈΛ͠ɺ࠶ͼ ఀࢭ͞ΕΔ ɾࠔͬͨڍಈҟৗ͕ى͖Δͷී௨ɻͦΕΛݕͰ͖ͳ͍ͷ͕ ɾʮϔϧενΣοΫʹΑΔఀࢭʯΛݕ͢Δํ๏͍Ζ͍Ζ͋Δɻ $MPVE8BUDI&WFOU %BUBEPH.POJUPST
&-#ϔϧενΣοΫLJMMT&$4UBTL Cyberagent inc. %BUBEPHͩͱϔϧενΣοΫࣦഊΠϕϯτΛऔಘɾΞϥʔτઃఆΛ͢ Δͷ͕ͱָͯɻ
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc.
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾલఏ ͦͦίϯςφʹTTI͖͢͡Όͳ͍ɻ TTIϩάΠϯͯ͠ΦϖϛεɺΛ͍͗ͨɻ ίϯςφ͕Ͳ͜Ͱಈ͍͍ͯΔ͔ɺͱ͔Ѳ͓͖ͯͨ͘͠ͳ͍ɻ ϩάɾϝτϦΫεऩूपลαʔϏεΛ͏͖ɻ
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ͱ͍͑ɺෆ۩߹͕ى͖ͨͱ͖ʹΓ ׳Εͨํ๏ΛऔΓͨ͘ͳΔͷ͕ਓͷੑɻɻ
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾϝϞϦϦʔΫͷݪҼௐࠪͰۤ͠Ή ϝϞϦϦʔΫͯ͠ΔώʔϓμϯϓΛͱΓ͍ͨɻ KTUBUKDNEKNBQϩʔΧϧͷ+7.ʹର͔ͯ͑͠͠ͳ͍ɻ ͳΒ7JTVBM7.ͷ3FNPUF+.9ଓΛ͓͏͔ͳ
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾ3FNPUF+.9ɺ.BMGPSNFE63-&YDFQUJPOͰ٧Ήɻ ɾಉࢤɺଟɻ GBSHBUFKNYFSSPS ɹhttps://forums.aws.amazon.com/thread.jspa?threadID=268676 ɾͳΒMPDBMڥͰ࠶ݱͤͯ͞தݟͨΔΘɻ ɾ͋ΕɺMPDBM͡Ό࠶ݱ͠ͳ͍ͳʔɻ ɾͳΒPO&$Ͱ࠶ݱͤͯ͞தݟͨΔΘɻ
ɾ͋ΕɺPO&$Ͱ࠶ݱ͠ͳ͍ʁ ɾ͋ΕɺͳʹͬͯͨΜ͚ͩͬɺԶɻ
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾٹͬͯ͘Εͨͷ✨4QSJOH#PPU"DUVBUPS✨ "DUVBUPSγεςϜͷ༷ʑͳঢ়ଶΛ֬ೝ͢ΔͨΊͷΤϯυϙΠϯτ Λఏڙͯ͘͠ΕΔɻ ͨͱ͑FOW IUUQUSBDF CFBOT MPHHFST
NFUSJDT IFBQEVNQ DVSMIUUQYYYYYYYYYBDUVBUPSIFBQEVNQPYYYIQSPG
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. ɾIFBQEVNQ͑͞ͱΕΕͬͪ͜ͷͷɻ ࠓճʢͨ·ͨ·ʣ؆୯ʹ൜ਓ͕ಛఆͰ͖ͨɻ %BUBEPHͱ4QSJOH8FCGMVY͕ڞ͓ͯ͠࿙Β͍ͯͨ͠͠ɻ ˞%BUBEPHͱ8FCGMVYΛݸผͰ͍ͬͯͨ߹ى͖ͯ·ͤ Μɻ͍ํɺίʔυͷॻ͖ํ͕ݪҼͰ͋ΔՄೳੑେ͍ʹ͋Γ·͢ɻ
'BSHBUFTTIϩάΠϯͰ͖ͳ͍ Cyberagent inc. †अಓ† TTIEΛίϯςφʹΠϯετʔϧ͢Δ ͋͘·ͰௐࠪΛ͢Δͱ͖͚ͩɺɺɺ ࠷ޙͷ࠷ޙɺԿʹཔΕͳ͘ͳͬͨͱ͖ʹ͕͢Δɻ ɾVCVOUVʹTTIEΠϯετʔϧ͢Δྫ https://docs.docker.com/engine/examples/running_ssh_service/
·ͱΊ Cyberagent inc.
·ͱΊ Cyberagent inc. ͋ͬͨΓ·͑ͷ͜ͱ͚ͩͲɺɺ ɾϚΠΫϩαʔϏεɺαʔόʔϨεɺίϯςφӡ༻ গʢछྨʣͷཧαʔόʔɺ7.ӡ༻࣌ʹ௨༻ͯͨ͠Γํɾπʔϧ͕ ಉ͡Α͏ʹՁΛൃشͰ͖ΔͱݶΒͳ͍ɻ ɾ͍ΖΜͳπʔϧʹॿ͚ͯΒ͍ͳ͕ΒγεςϜΛ࡞Δ ϩάऩूɾϝτϦΫεࢹπʔϧͳͲͳͲඞਢɻ ݕূ࣌ɺ։ൃ࣌Αͯ͘ຊ൪ӡ༻ɾҟৗൃੜ࣌Λઓ͍͵͚Δঢ়ଶʹͳͬ
͍ͯΔ͔ʁ
·ͱΊ Cyberagent inc. ͍Ζ͍Ζݴ͚ͬͨͲɺ'BSHBUF͖Ͱ͢ɻ पลπʔϧͷαϙʔτ֦ॆɾ৽ػೳͷՃΛ ৺͔Βظ͓ͯ͠Γ·͢
৽ػೳͱ͍͑ɻɻ Cyberagent inc. ͜Ε͢Β͍͠ʂʂ
4JNQMZͷ&$4λεΫߏྫ Cyberagent inc. ίϯςφͷىಈॱେࣄʂʂ Credit Card Service Master Datadog SNS
Publisher ܾࡁ࣮ߦ τϥϯβΫγϣϯཧ 4/4ͷ1VCMJTI ར༻ऀଆαʔϏε ͷใऔಘ $SFEJU$BSEίϯςφ4FSWJDF.BTUFSίϯςφͱ4/4 1VCMJTIFSίϯςφʹґଘ͍ͯ͠Δɻઌʹىಈ͍ͯͯ͠ཉ͍͠ɻ 4JNQMZΫϨδοτΧʔυܾࡁ5BTL
5XFFUʹଓ͖͕ɻɻɻ Cyberagent inc.
Ųōŕ Cyberagent inc. ݱ࣌ͰରԠ͍ͯ͠ΔىಈϞʔυ "EC2"Ͱ͢ɻ
'BSHBUF Cyberagent inc. Fargate...?
5IBOLZPV Cyberagent inc. ͓͠·͍ɻ