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で楽をするサービスメッシュ入門/appmesh-trial
Search
ryo nakamaru
August 24, 2019
Programming
1
1.4k
AWSで楽をするサービスメッシュ入門/appmesh-trial
JAWS-UG 会津 @ 2019.08.24 でのスライドです
ryo nakamaru
August 24, 2019
Tweet
Share
More Decks by ryo nakamaru
See All by ryo nakamaru
reinforce-2019-recap-lt
pottava
2
4.1k
ScaleShift-jp-2019-summer
pottava
1
190
Firecracker とは何か/what is Firecracker
pottava
13
5.3k
ハイブリッド並列 on Kubernetes/hybrid-parallel-program-on-kubernetes
pottava
1
410
AWS Fargate + Code 兄弟で始める継続的デリバリー / Continuous Delivery with AWS Fargate and Code brothers
pottava
12
3.1k
Singularity と NVIDIA GPU Cloud で作る ハイブリッド機械学習環境の構築 / Building a hybrid environment for Machine Learning with Singularity and NGC
pottava
3
1.2k
明日から始めるちょい足し λ / get-started-with-aws-lambda
pottava
4
2.4k
NGC と Singularity によるハイブリッド機械学習環境 / A hybrid environment for Machine Learning with NGC and Singularity
pottava
0
460
NGC × Singularity での機械学習環境/MachineLearning environment with NGC and Singularity
pottava
2
690
Other Decks in Programming
See All in Programming
モバイルアプリにおける自動テストの導入戦略
ostk0069
0
110
「Chatwork」Android版アプリを 支える単体テストの現在
okuzawats
0
180
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
360
テストコードのガイドライン 〜作成から運用まで〜
riku929hr
4
520
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
380
useSyncExternalStoreを使いまくる
ssssota
6
1k
たのしいparse.y
ydah
3
120
PHPで学ぶプログラミングの教訓 / Lessons in Programming Learned through PHP
nrslib
2
260
선언형 UI에서의 상태관리
l2hyunwoo
0
160
なまけものオバケたち -PHP 8.4 に入った新機能の紹介-
tanakahisateru
1
120
Featured
See All Featured
Statistics for Hackers
jakevdp
796
220k
Typedesign – Prime Four
hannesfritz
40
2.4k
Rails Girls Zürich Keynote
gr2m
94
13k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
26
1.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Music & Morning Musume
bryan
46
6.2k
Thoughts on Productivity
jonyablonski
67
4.4k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
0
98
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
5
450
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
Code Review Best Practice
trishagee
65
17k
Transcript
AWS ͰָΛ͢ΔαʔϏεϝογϡೖ JAWS-UG Aizu @ Aug 24th / Ryo Nakamaru,
SUPINF Inc.
தؙ ྑ @pottava - SUPINF ͱ͍͏डୗ։ൃ / ӡ༻ձࣾͷΤϯδχΞ - ձͱ౦ژʑͷੜ׆
- JAWS-UG ίϯςφࢧ෦ / AI ࢧ෦ ͷӡӦ Profile
SUPINF Inc 3 https://jawsug-container.connpass.com/event/143245/
SUPINF Inc ͡Ίʹ 4 ࣌ؒͷ߹্ɺͷ͘͢͝୯७Խͯ͠͠·͢ɻ ࣮ࡍʹ AWS ֤αʔϏεΛ͓͍ʹͳΔࡍ ΑΓਖ਼֬ͳදݱͷղઆΛ͓ಡΈ͍ͩ͘͞
SUPINF Inc τϐοΫ 5 • αʔϏεϝογϡʁ • AWS App Mesh
ɻ • ࣮ࡍͷߏྫ / Tips
SUPINF Inc 6 αʔϏεϝογϡʁ
SUPINF Inc 7 αʔϏεϝογϡ = ௨৴͢ΔΈͷͻͱͭ
SUPINF Inc ಛ̍: ૬खॅॴͰͳ͘ɺ໊લͰࢦఆ 8 Uber Eats ͞ʔΜʂ ਖ਼ɺୡһͷ ډॴΒͳ͍
SUPINF Inc ಛ̎: ͔ͦ͠Εɺِ໊ 9 Uber Eats ͞ʔΜʂ Θͨ͠ͷ ຊ໊ൿີͰ͢
SUPINF Inc 10 ͜͏͢Δ͜ͱͰ ɾ࣮ࡍʹಈ͘ͻͱΛࣗ༝ʹม͑ΒΕΔ ɾ “ಈ͚Δͻͱ” Λ୳͠ɺஔͰ͖Δ
SUPINF Inc 11 ݁Ռͱͯ͠ ɾಈ͚Δͻͱʹಈ͍ͯΒ͑ΔʢՄ༻ੑʣ ɾಈ͚ΔͻͱΛແݶʹ૿ͤΔʢ֦ுੑʣ
SUPINF Inc ಛ̏: “͖௨৴” ͷ੍ޚͪΖΜͰ͖Δ͠ 12 ܾࡁαʔϏε͞ʔΜʂ ❌ Βͳ͍ਓ͔Βͷ ͓ئ͍ฉ͚ͳ͍Μͩ
SUPINF Inc ಛ̏: “֎͖௨৴” ͷ੍ޚ͔ΜͨΜ 13 ❌ ͋Εɺ୭ʹ ͔͚͠ΒΕͳ͍.. ʁ
SUPINF Inc ಛ̐: ෛՙΛࢄͯ͘͠ΕͨΓ 14 ΈΜͳͰରԠ͢ΔΑ
SUPINF Inc ಛ̑: աͳΞΫηε͔Βकͬͯ͘ΕͨΓ 15 ❌ ͝ΊΜͦΖͦΖແཧ ..
SUPINF Inc ಛ̒: ௨৴ΛϦτϥΠͯ͘͠ΕͨΓ 16 ❌ ❌ ̎ඵޙ ̐ඵޙ
SUPINF Inc ಛ̓: ௨৴Λ҉߸Խͯ͘͠ΕͨΓ͢Δ 17 ͚ͩ͜͜ͷ .. ͑ʔͬͱɺ ղಡ͢Δ伴 ..
SUPINF Inc 18 ศརͦ͏Ͱ͢ΑͶ
SUPINF Inc 19 Ͳ͏࣮ͬͯݱ͍ͯ͠Δͷʁ
SUPINF Inc ̍. αʔϏεʹ໊લΛ͚ͭ·͢ 20 ࢲʢͨͪʣࠓޙ ܾࡁαʔϏεͱ໊Γ·͢
SUPINF Inc ̎. ϓϩΩγʔΛཱͯ·͢ 21 ܾࡁαʔϏε͞Μ ͜Μʹͪ ཧͷͷͰ͢ ͜Μʹͪ ͪ͜Β
ཧͰ͓Ԡ͑͠·͢
SUPINF Inc ̏. શମΛݟͯ͘ΕΔϚωʔδϟʔΛཱͯ·͢ 22 ܾࡁαʔϏε ͋ͬͪʹ͍ΔΑ ؙ͔Βͷ ґཔ͏͚ͯ OK
SUPINF Inc ̐. αʔϏεͷਖ਼ৗੑΛఆظతʹ֬ೝ͠·͢ 23 ܾࡁαʔϏε͞Μ ಈ͚Δͻͱ͍Δʁ
SUPINF Inc 24 ͭ·Γ
SUPINF Inc 25 αʔϏεϝογϡ = ؙͷྗΛआΓͯ௨৴͢ΔΈ
SUPINF Inc 26 ͨͩͪΐͬͱͬͯɺ
SUPINF Inc ͋ͳͨͷγεςϜʹɺ΄Μͱʹඞཁʁ 27
SUPINF Inc 28 ͍Γ·ͤΜ ʢʣ
SUPINF Inc 29
SUPINF Inc 30 ඞཁͩͱ͠·͠ΐ͏ɻ
SUPINF Inc 31 ɹɹAWS App Mesh
SUPINF Inc 32 ԾαʔϏεɺԾϧʔτɺԾϊʔυ
SUPINF Inc ԾαʔϏε: ௨৴Λड͚Δͷ 33 ࢲͷґཔ ԾαʔϏε ʮܾࡁ.svc.localʯ ܦ༝ͰͶ
SUPINF Inc Ծϊʔυ: ௨৴্ɺೝ͍ࣝͨ͠୯Ґ 34 ૹ৴ݩͰ͢ ड͚ೖΕ͍ͯͩ͘͞ ૹ৴ઌͰ͢ ௨৴هͯ͠Ͷ
SUPINF Inc Ծϧʔτ: αʔϏε͔Βϊʔυͷసૹϧʔϧ 35 ܾࡁ.svc.local ͞Μʂ 70% 30%
SUPINF Inc 36 ͜ΕΒ͕ڠௐಈ࡞͢Δͱɾɾ
SUPINF Inc ઃఆใͱਖ਼ৗੑใ͔ΒసૹϧʔϧΛ৴ 37 ܾࡁ.svc.local Ͱ ͍·ଓͰ͖Δͷ..
SUPINF Inc ԾαʔϏε໊ͰΞΫηεͰ͖Δ 38 ԾαʔϏε͔Β Ծϧʔτʹج͖ͮ ࣄΛ͞Εͨ ԾϊʔυͰ͢ ԾϊʔυͰ͢ ܾࡁ.svc.local
͞ʔΜ
SUPINF Inc 39 Ծϊʔυ Ͳ͏ͬͯݟ͚ͭΔ͔
SUPINF Inc 40 αʔϏεσΟεΧόϦʔΛ͍·͠ΐ͏
SUPINF Inc 41 ԾϊʔυͷൃݟʹͲͪΒ͔͕͑·͢ ɾDNS ɾAWS Cloud Map AWS ͷϚωʔδυ
αʔϏεσΟεΧόϦʔ
SUPINF Inc αʔϏεσΟεΧόϦʔྫ 42 ECS αʔϏε ࠷ऴతʹ ݩؾͳίϯςφʹ ܨ͍Ͱ΄͍͠
SUPINF Inc Cloud Map Ͱ ECS αʔϏεʹผ໊Λ͚ͭΔ 43 ECS αʔϏε
Cloud Map ܾࡁ.svc.local ͜ͷ໊લͰ ECS αʔϏε தͷݩؾͳίϯςφ͕ฦΔ
SUPINF Inc Ծϊʔυͷൃݟํ๏ʹ Cloud Map Λࢦఆ 44 ECS αʔϏε Cloud
Map App Mesh ܾࡁ.svc.local Ծϊʔυ node-ܾࡁ
SUPINF Inc ԾαʔϏε͔ΒϊʔυͷϧʔτΛ࡞Δ 45 ECS αʔϏε Cloud Map App Mesh
ܾࡁ.svc.local ԾαʔϏε node-ܾࡁ ܾࡁ.svc.local Ծϊʔυ
SUPINF Inc ͋ͱ App Mesh ʹͤΕ .. 46 ʔ͍ɻܾࡁ୲ ͷ͏ͪɺग़ۈதͷ
ࢲ͕͓ड͚͠·͢ ܾࡁ.svc.local ͞ʔΜ
SUPINF Inc 47 ࣮ࡍͷߏྫ / Tips
SUPINF Inc 48 ALB Public subnets Private subnets Fargate ֎෦࿈ܞ
API ೝূ API ۀϩδοΫ API CloudFront X-Ray CW Logs App Mesh Cloud Map ֎෦͔ΒͷΞΫηε
SUPINF Inc 49 ALB Public subnets Private subnets Fargate ֎෦࿈ܞ
API ೝূ API ۀϩδοΫ API CloudFront X-Ray CW Logs App Mesh Cloud Map సૹϧʔϧͷө
SUPINF Inc 50 ALB Public subnets Private subnets Fargate ֎෦࿈ܞ
API ೝূ API ۀϩδοΫ API CloudFront X-Ray CW Logs App Mesh Cloud Map ෦௨৴
SUPINF Inc 51 ALB Public subnets Private subnets Fargate ֎෦࿈ܞ
API ೝূ API ۀϩδοΫ API CloudFront X-Ray CW Logs App Mesh Cloud Map τϨʔεใू
SUPINF Inc 52 ͬͯΈ·͠ΐ͏
SUPINF Inc ΰʔϧ: App Mesh શʹཧղʢHello Worldʣ 53 https://github.com/pottava/appmesh-trial HTTP
ϦΫΤετΛ dump ͢Δ API Λ͍ App Mesh Λܦ༝͢Δ / ͠ͳ͍ Ͱ͕Ͳ͏มΘΔ͔ΛΈͯΈΑ͏ ʢCFn ςϯϓϨʔτΛಡΜͰ AWS Ϧιʔεͷ ؔੑΛѲ͠Α͏ʣ
SUPINF Inc ࠓճͷߏ 54
SUPINF Inc ࠓճͷߏ 55 80 ൪ϙʔτ → ALB ͔Β API
ίϯςφ
SUPINF Inc ࠓճͷߏ 56 8080 ൪ϙʔτ → App Mesh ܦ༝Ͱ
API ίϯςφ
SUPINF Inc Tips 57 • ԾαʔϏε໊·ͣɺͲ͔͜ͷ envoy ϗετ IP ʹղܾ͕ඞਢ
• App Mesh ԾαʔϏε໊ = Cloud Map αʔϏε໊ • ·ͣ IP ΞυϨεʹղܾ͞Εͳ͍ͱ Hostname not found .. • Mesh ͷ EgressFilterɺσϑΥϧτ DROP_ALL • ࣗ༝ʹ֎෦௨৴͍ͨ͠ͷͳΒ ALLOW_ALL ʹ͠·͠ΐ͏ • MySQL ܨ͕Βͳ͍ɾɾʁ • EgressIgnoredPorts Λ͍·͠ΐ͏ https://github.com/aws/aws-app-mesh-roadmap/issues/62
SUPINF Inc 58 ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ :) ࢀߟɿ • AWS App MeshʢϚΠΫϩαʔϏεΛϞχλϦϯά͓Αͼίϯτ
ϩʔϧ͢Δʣ| AWS https://aws.amazon.com/jp/app-mesh/ • AWS App Mesh Roadmapɻhttps://github.com/aws/aws-app-mesh- roadmap • App Mesh τϥΠΞϧ https://github.com/pottava/appmesh-trial • JAWS-UG ίϯςφࢧ෦ #15 https://jawsug- container.connpass.com/event/143245/
SUPINF
౦ژौ୩۠ौ୩2-11-5 03-6427-6517 https://www.facebook.com/supinf/ @supinf_pr CONTACT US And thank you for
your time