Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ECS on FargateへのSeekable OCI導入レポート
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
iwamot
PRO
March 07, 2024
Technology
780
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ECS on FargateへのSeekable OCI導入レポート
2024-03-07
JAWS-UG コンテナ支部 #26 新春大LT祭り
https://jawsug-container.connpass.com/event/307354/
iwamot
PRO
March 07, 2024
More Decks by iwamot
See All by iwamot
MCP Appsを作ってみよう
iwamot
PRO
4
840
自己紹介
iwamot
PRO
1
140
パワポ作るマンをMCP Apps化してみた
iwamot
PRO
0
1.1k
8万デプロイ
iwamot
PRO
2
460
AIエージェント・マイクロサービス時代。AWSでの手軽な構築法を考えて試してみた
iwamot
PRO
1
150
これがLambdaレス時代のChatOpsだ!実例で学ぶAmazon Q Developerカスタムアクション活用法
iwamot
PRO
10
3.1k
Developer Certificate of Origin、よさそう
iwamot
PRO
0
130
復号できなくなると怖いので、AWS KMSキーの削除を「面倒」にしてみた CODT 2025 クロージングイベント版
iwamot
PRO
1
230
復号できなくなると怖いので、AWS KMSキーの削除を「面倒」にしてみた
iwamot
PRO
3
230
Other Decks in Technology
See All in Technology
freeeらしさをAIとともに作る / Creating the freee Experience with AI
ymrl
0
210
プロダクト価値を、 チームが使える判断軸に変える
vivion
0
130
AI 時代の Azure エンジニアリング ~ 私たちは何を磨き、何を任せるのか ~
chack411
1
530
AI時代に必要な脅威モデリング― 変化の速度に負けない理解とリスク判断
masakane55
5
1.2k
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
3
4.4k
Meet AgentCore Identity Consent Portal
hironobuiga
3
190
【データ横丁主催】AI Agentがコンテキストを使って仕事をした後、何が残るのか― 組織の経験を次の判断に引き継ぐ「Agent Memory」
shisyu_gaku
2
340
LLM機能を自作して分かるSnowflake Cortex AIの強み
nayuts
0
320
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
320
カンファレンスに参加した後の浮遊感とセルフケア
pauli
0
310
AIがコードを書く時代に、エンジニアは何で自分の価値を証明するのか / In an era where AI writes code how do engineers prove their value
carta_engineering
0
170
おそらく日本で唯一のDevRelインターン生として
husengs7
0
170
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
890
WCS-LA-2024
lcolladotor
0
850
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
490
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Darren the Foodie - Storyboard
khoart
PRO
4
4k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Paper Plane
katiecoart
PRO
4
54k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
510
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
450
Transcript
ECS on FargateへのSeekable OCI導入レポート 2024-03-07 JAWS-UG コンテナ支部 #26 新春大LT祭り https://jawsug-container.connpass.com/event/307354/
ENECHANGE株式会社 VPoT兼CTO室マネージャー 岩本 隆史
岩本 隆史 (iwamot) 現職:ENECHANGE CTO室にて全社的な施策を提案・実施 前職:AWS Japan クラウドサポートアソシエイトの一員 AWS Community
Builder (Cloud Operations)
2023-11:ECS on FargateでSOCIの利用が現実的に 2023-07:提供開始(X86_64のみ + 全イメージでの利用が必須) https://aws.amazon.com/jp/about-aws/whats-new/2023/07/aws-fargate-container- startup-seekable-oci/ 2023-08:ARM64でも利用可能に https://github.com/aws/containers-roadmap/issues/2078
2023-11:一部イメージだけでも利用可能に https://aws.amazon.com/jp/about-aws/whats-new/2023/11/aws-fargate-amazon- ecs-tasks-selectively-leverage-soci/
2023-12:アプリAに導入 → 18%の起動高速化 環境 導入前 導入後 改善率 prod-app-a 71秒 58秒
18% SOCI Index BuilderスタックをTerraformで作成/更新できるように整備 ここまでの話は https://tech.enechange.co.jp/entry/2023/12/06/170306 で紹介 書いていなかったこと CTO室で運用している社内システムのため進めやすかった 起動時間はバラつきがあるので、あくまで目安
2024-01:アプリB/Cに導入 → 40~42%の起動高速化 サービス 導入前 導入後 改善率 prod-app-b 92秒 53秒
42% prod-app-c 136秒 82秒 40% 事業部に提案して導入 イメージ軽量化も実施(例:ベースイメージをrubyからruby:slimに変更) prod-app-b:57%の軽量化 prod-app-c:30%の軽量化
導入に際し、イメージタグを調整 環境 調整前 調整後 production 1.0.0 prod-1.0.0 staging stg-1.0.0 stg-1.0.0(そのまま)
SOCI Index Builderで対象が絞りやすくなる(例: app-b:prod-*,app-b:stg-* ) 「環境ごとにイメージ必要?」という疑問はなくもない
ENECHANGEでは、無条件で導入することに 導入した全アプリで起動が高速化、かつ、不具合なし もし不具合があっても、インデックス削除で対処可能
2024-02:新規構築のアプリDに導入 Elastic Beanstalkからの移行案件 ECS環境構築用の社内Terraformモジュールを使用(アプリA/B/Cでは未使用)
導入に際し、社内Terraformモジュールを調整 aws_ecr_lifecycle_policyリソースに、インデックス削除ルールを追加 イメージタグは下表の通り インデックス種別 イメージタグ イメージインデックス sha256- から始まる文字列 SOCIインデックス なし
2024-03:新規構築のアプリEに導入 モジュールの調整が済んでいたため、Terraformで簡単に完了
全アプリへの導入を進める予定 単純にアプリが多いため、まだまだ残っている とはいえやるだけ
まとめ 2023-11:ECS on FargateでSOCIの利用が現実的に 2023-12:アプリAに導入 → 18%の起動高速化 2024-01:アプリB/Cに導入 → 40~42%の起動高速化(イメージ軽量化も実施)
導入に際し、イメージタグを調整 ENECHANGEでは、無条件で導入することに 2024-02:新規構築のアプリDに導入 導入に際し、社内Terraformモジュールを調整 2024-03:新規構築のアプリEに導入 全アプリへの導入を進める予定