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
Amazon EC2 Container Service(ECS)
Search
Isao Shimizu
February 18, 2015
Technology
0
160
Amazon EC2 Container Service(ECS)
第6回 コンテナ型仮想化の情報交換会@東京
LT枠
Isao Shimizu
February 18, 2015
Tweet
Share
More Decks by Isao Shimizu
See All by Isao Shimizu
New Relicを活用したSREの最初のステップ / NRUG OKINAWA VOL.3
isaoshimizu
3
730
「家族アルバム みてね」における運用管理・ オブザーバビリティの全貌 / Overview of Operation Management and Observability in FamilyAlbum
isaoshimizu
4
250
約10年間MIXIのインフラを 支えてきたPagerDutyの活用事例 / PagerDuty on Tour 2024
isaoshimizu
6
960
家族アルバム みてねにおけるGrafana活用術 / Grafana Meetup Japan Vol.1 LT
isaoshimizu
1
1.6k
家族アルバム みてねで直面してきた技術的負債 / MIXI KAG 2024
isaoshimizu
18
8.8k
今年1年のEKS運用振り返り/3-shake SRE Tech Talk
isaoshimizu
2
320
ポストモーテムの基礎知識と最新事例 / Fundamentals of Postmortem
isaoshimizu
11
2.7k
全世界1,800万人が利用する「家族アルバム みてね」におけるNew Relic活用法 / FutureStack Tokyo 2023
isaoshimizu
1
460
『家族アルバム みてね』で計測しているSLIの事例 / SLI as measured in FamilyAlbum
isaoshimizu
3
720
Other Decks in Technology
See All in Technology
AWS re:Invent 2024 予選落ちのBedrockアプデをまとめて解説!
minorun365
PRO
1
140
もし大規模障害が、10分で解決できたら?
masaaki_k
0
120
'24/11月開催 Visual Studio CodeのDev Containersを使って開発環境構築してみよう
devops_vtj
0
110
Postman Flowsで作るAPI連携LINE Bot
miura55
0
190
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.9k
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
1.1k
Continuous Integration! Raising the Bar
tdpauw
1
110
【Startup CTO of the Year 2024 / Audience Award】アセンド取締役CTO 丹羽健
niwatakeru
0
2.2k
minify の効果を最大限に引き出す TypeScript コードを書く
jsakamoto
2
130
Next.jsとNuxtが混在? iframeでなんとかする!
ypresto
2
2k
あなたの知らない Function.prototype.toString() の世界
mizdra
PRO
4
2.6k
140年の歴史あるエンタープライズ企業の内製化×マイクロサービス化への航海
yussugi
0
2.5k
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
How GitHub (no longer) Works
holman
310
140k
Code Reviewing Like a Champion
maltzj
520
39k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.3k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
A Philosophy of Restraint
colly
203
16k
How STYLIGHT went responsive
nonsquared
95
5.2k
Making Projects Easy
brettharned
115
5.9k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Transcript
Amazon EC2 Container Service(ECS) ୈ6ճ ίϯςφܕԾԽͷใަձˏ౦ژ LT 2015.2.18 Isao SHIMIZU
@isaoshimizu
ࣗݾհ ਗ਼ਫ ܄ ʢIsao SHIMIZUʣ Twitter: @isaoshimizu גࣜձࣾϛΫγΟ ϞϯετελδΦॴଐ -
ݱࡏ4ʢ2011ೖࣾʣ - mixiͷΠϯϑϥӡ༻ʢΦϯϓϨʣ - ݱࡏɺϞϯελʔετϥΠΫͷΠϯϑϥɾαʔόӡ༻ʢΦϯϓϨɺAWSʣ - ϛΫγΟ ΤϯδχΞϒϩάࣥචʢFedoraɺsystemdɺOpenStackɺLXCͳͲʣ - Software Designࣥචʢsystemd΄͔ʣ લ৬: - 2003ʙ2011 SIerͰاըɺ։ൃɺΠϯϑϥӡ༻ - ΈࠐΈɺWebɺεϚϑΥΞϓϦɺಈը৴ͳͲ ࠷ۙؾʹͳ͍ͬͯΔ͜ͱ - Apache MesosɺConsulɺPrometheusɺHTTP/2
&$4ͱ - AWS re:Invent 2014(2014.11.11~14)Ͱൃද͞Εͨ৽αʔϏε - Amazon EC2 Container Serviceͷུ
- 2015.2.18ݱࡏ·ͩϓϨϏϡʔϦϦʔεʢొ੍ɻus-east-1ͷΈͰར༻Մೳʣ - EC2ʢίϯςφΠϯελϯεʣʹίϯςφΛ؆୯ʹىಈͰ͖Δ - ECS͚ͷઐ༻AMIΛ͏ - Dockerޓʢݱ࣌Ͱαϙʔτ͢ΔίϯςφϓϥοτϑΥʔϜDockerͷΈʣ - ΫϥελʢΠϯελϯεͷάϧʔϐϯάʣ - λεΫͱ͍͏֓೦ - Ϧιʔεεέδϡʔϥʔ
&$4Λࢼ͠ʹͬͯΈͨ - ·ͣϓϨϏϡʔొ ɹhttp://aws.amazon.com/jp/ecs/preview/ - ͠Βͭ͘ʢ߹ʹΑͬͯʙ2िؒ͘Β͍ʣ - ʮͬͯΈͨʯܥهࣄ͕߈Ͱ্͕͍ͬͯΔͷͰͻͱ௨ΓͬͯΈΔ ͜ͷ͋ͨΓͱ͔ ɹhttp://dev.classmethod.jp/cloud/ecs-ataglance/
ɹhttp://tech.recruit-mp.co.jp/infrastructure/preview-amazon-ec2-container-service/ ɹ
ͬͯΈͯͲ͏ͩͬͨͷ͔ - खॱ௨ΓʹΕ୭Ͱ؆୯ʹίϯςφͷΫϥελΛߏͰ͖Δ - ίϯιʔϧμογϡϘʔυͰECSͷૢ࡞Ͱ͖ͳ͍ʢ͓ͦΒ͘ϓϨϏϡʔ͔ͩΒʣ - AWS CLIΛͬͯΫϥελλεΫΛૢ࡞͢Δͷ͕લఏʢ͍·ͷͱ͜Ζʣ - JSONϑΝΠϧʹఆٛͯ͠ίϚϯυʹ͢ૢ࡞͕جຊ
- Docker HubΛͦͷ··͑ΔʢϓϥΠϕʔτͷϨδετϦͰͳ͍ʣ - ྉۚEC2, EBSͷར༻ྉ͚ͩؾʹ͢ΕΑ͍ʢECSར༻ྉଘࡏ͠ͳ͍ʣ - CoreOSΛECSͷΫϥελʹՃ͢Δ͜ͱ͕Մೳ - https://coreos.com/docs/running-coreos/cloud-providers/ecs/ - CoreOSىಈ࣌ʹECSͷΤʔδΣϯτ༻ͷίϯςφΛDocker pullͯ͠ىಈ͍ͯ͠Δ
&$4ؔ࿈ͷΩʔϫʔυ Ϋϥελ - ίϯςφΛάϧʔϐϯάͨ͠ͷ - Ϧιʔεϓʔϧͱͯ͠ѻ͏ - ಉϦʔδϣϯͰߏ ΤʔδΣϯτ -
ίϯςφΠϯελϯεʢEC2ʣʹىಈ͍ͯ͠ΔDockerͷ1ίϯςφͱͯ͠ىಈ - Docker Hub: https://registry.hub.docker.com/u/amazon/amazon-ecs-agent/ - GitHub: https://github.com/aws/amazon-ecs-agent λεΫ - ίϯςφ্Ͱ࣮ߦͤ͞ΔDockerΠϝʔδͷఆٛ - ༧͢ΔϝϞϦCPUͳͲͷϦιʔεͷఆٛ - ΫϥελͰಈ࡞͢Δίϯςφͷू߹
ಈ࡞ڥʹ͍ͭͯ ίϯςφΠϯελϯεͷAMIʹ͍ͭͯ amzn-ami-2014.09.1-amazon-ecs-optimized-preview2 (ami-34ddbe5c) Amazon ECS-Optimized Amazon Linux AMI 2014.09.1
x86_64 ECS HVM GP2 Preview 2 OSʹ͍ͭͯ Amazon Linux 2014.09.1 Kernel: 3.14.26-24.46.amzn1.x86_64 Dockerͷόʔδϣϯʹ͍ͭͯ Client version: 1.3.3 Client API version: 1.15 Go version (client): go1.3.3 Git commit (client): c78088f/1.3.3 OS/Arch (client): linux/amd64 Server version: 1.3.3 Server API version: 1.15 Go version (server): go1.3.3 Git commit (server): c78088f/1.3.3
·ͱΊ - ෳͷEC2ΠϯελϯεΛԣஅͯ͠DockerίϯςφΛཧͰ͖Δͷ͕Α͍ - API, CLIͰૢ࡞Ͱ͖ΔͷͰ֤छγεςϜͱ࿈ܞͰ͖Δ - طଘͷDockerΠϝʔδͳͲͷࢿ࢈Λ࠶ར༻Ͱ͖Δ - AWSͷηΩϡϦςΟάϧʔϓELBͳͲͷ࿈ܞ͕Ͱ͖Δͷخ͍͠
- Elastic IP͑ΔΑ͏ʹͳΔΒ͍͠ - ͍ͭ౦ژϦʔδϣϯͰ͑ΔΑ͏ʹͳΔ͔Θ͔Βͳ͍ - ຊ൪Ͱ͏͖͔Ͳ͏͔·ͩΘ͔Βͳ͍ - ཧϨΠϠʔ͕Ͱ͖ͨ͜ͱͰຊ൪ಋೖ͕͍ۙͮͨͷؒҧ͍ͳ͍ - ΦϯϓϨͱAWSͷซ༻ͰDockerΛ͏ͷ·ͩϋʔυϧ͕ߴ͍ - ͦͦDocker͕࠷దղͳͷ͔·ͩΘ͔Βͳ͍ʢRocketͱ͔͋Δ͠ʣ
ࢀߟใ ɾAmazon EC2 Container Service ɹhttp://aws.amazon.com/jp/ecs/ ɾAmazon EC2 Container Service
Developer Guide ɹhttp://docs.aws.amazon.com/AmazonECS/latest/developerguide/ ɾAWS CLI ecs ɹhttp://docs.aws.amazon.com/cli/latest/reference/ecs/index.html ɾECS for Docker Meetup #4 ɹhttp://www.slideshare.net/shot6/ecs-for-docker-meetup-4 ɾࠓಧ͍ͨAmazon EC2 Container Service (ECS)ΛͬͯΈͨ ɹhttp://tech.recruit-mp.co.jp/infrastructure/preview-amazon-ec2-container-service/ ɾAmazon EC2 Container Service(ECS)Ͱ੩తWebαΠτΛσϓϩΠ͢Δ ɹhttp://dev.classmethod.jp/cloud/aws/ecs-deploy-static-website/ ɾCoreOSΛECS(EC2 Container Service)ΫϥελʹՃ͢Δ ɹhttp://dev.classmethod.jp/cloud/add-coreos-to-ecs-cluster/