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
Refactor your code - refactor yourself
xosofox
1
260
Security_for_introducing_eBPF
kentatada
0
110
バグを見つけた?それAppleに直してもらおう!
uetyo
0
170
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
The Efficiency Paradox and How to Save Yourself and the World
hollycummins
1
440
17年周年のWebアプリケーションにTanStack Queryを導入する / Implementing TanStack Query in a 17th Anniversary Web Application
saitolume
0
250
Effective Signals in Angular 19+: Rules and Helpers @ngbe2024
manfredsteyer
PRO
0
130
From Translations to Multi Dimension Entities
alexanderschranz
2
130
これでLambdaが不要に?!Step FunctionsのJSONata対応について
iwatatomoya
2
3.6k
Monixと常駐プログラムの勘どころ / Scalaわいわい勉強会 #4
stoneream
0
270
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
270
Haze - Real time background blurring
chrisbanes
1
510
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
A Tale of Four Properties
chriscoyier
157
23k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
How STYLIGHT went responsive
nonsquared
95
5.2k
Git: the NoSQL Database
bkeepers
PRO
427
64k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Building Applications with DynamoDB
mza
91
6.1k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Building Adaptive Systems
keathley
38
2.3k
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