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
20210323.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nhjglgcm.,xdf
March 23, 2021
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20210323.pdf
nhjglgcm.,xdf
March 23, 2021
More Decks by nhjglgcm.,xdf
See All by nhjglgcm.,xdf
fork, vfork, posix_spawn
thiugfjdkvc
0
290
Delta Lake transaction log protocol
thiugfjdkvc
0
24
Featured
See All Featured
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Designing for Performance
lara
612
70k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
400
Music & Morning Musume
bryan
48
7.4k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
The SEO Collaboration Effect
kristinabergwall1
1
590
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.9k
Writing Fast Ruby
sferik
630
63k
Believing is Seeing
oripsolob
1
240
Practical Orchestrator
shlominoach
192
12k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
540
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Transcript
EC2 / Fargate Logging
summary 現状の構成(EC2 + fluentd) から Fargate + α に移⾏するためのロギング構成を検討する
現状の構成 fluentdはEC2起動テンプレートのユーザーデータで設定&プロセス起動 アプリケーションからEBSにファイル出⼒ fluentdで拾って Firehose -> S3 へ。 Athenaでクエリ 起動テンプレートに依存しているためFargateに移⾏できない
MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="==BOUNDARY==" --==BOUNDARY== Content-Type: text/x-shellscript; charset="us-ascii" #!/bin/bash pip3 install awscli curl -L https://toolbelt.treasuredata.com/sh/install-amazon2-td-agent3.sh | sh td-agent-gem install fluent-plugin-s3 td-agent-gem install fluent-plugin-elasticsearch td-agent-gem install fluent-plugin-kinesis td-agent-gem install fluent-plugin-slack aws s3 cp s3://***/fluentd.conf /etc/td-agent/td-agent.conf chown -R td-agent /work/td-agent chown -R td-agent /etc/td-agent
Sidecar pattern
None
ログ出⼒⽅法 ファイル出⼒ 標準出⼒ FireLens
FireLens AWS⽤のfluentbitのイメージを利⽤する Docker build時に設定&ECRにpush FROM amazon/aws-for-fluent-bit:2.12.0 COPY ./extra.conf /fluent-bit/etc/extra.conf
ECS task 定義 { ... "containerDefinitions": [ { "dnsSearchDomains": null,
"environmentFiles": null, "logConfiguration": { "logDriver": "awsfirelens", "secretOptions": null, "options": { "Name": "" } }, ... "image": " メインアプリケーションのコンテナイメージ", ... }, { ... "image": "fluentbit のコンテナイメージ", "startTimeout": null, "firelensConfiguration": { "type": "fluentbit", "options": null }, ... } ], ... }
conclusion FireLens と fluentbit を⽤いた Sidecar pattern による EC2 /
Fargate のロギング構成を 紹介した