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
2026年の個人的テーマ: 「計算機を燃やせ🔥」
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Kurochan
January 05, 2026
Technology
210
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
2026年の個人的テーマ: 「計算機を燃やせ🔥」
社内勉強会で発表しました
Kurochan
January 05, 2026
More Decks by Kurochan
See All by Kurochan
ABEMAのバグバウンティの取り組み
kurochan
1
1.2k
つなぐ、届ける、変える- コンテンツ配信の最前線ト——ク
kurochan
0
180
サイバーエージェント流クラウドコスト削減施策「みんなで金塊堀太郎」
kurochan
4
3.4k
AWS Elemental MediaPackageと格闘🤼
kurochan
2
150
サイバーエージェントでのSlack活用事例 @ 2025
kurochan
5
290
15年入社者に聞く! これまでのCAのキャリアとこれから
kurochan
1
410
入門 電気通信事業者
kurochan
13
5.9k
AWS x さくらのクラウドのハイブリッドクラウドによる安価なフレッツ閉域網接続の実装
kurochan
10
6.4k
GoでTCP Proxyを実装してみよう
kurochan
1
1.4k
Other Decks in Technology
See All in Technology
Why Agent Cost Needs Observability
nttcom
0
110
AgentCore Runtime上にAgentic Coding基盤を構築・展開する際の設計ポイントと限界点 / Design considerations and limitations when building an agentic coding platform on AgentCore Runtime
har1101
5
620
新機種発売前に見直そう!端末移行で再ログインが要るアプリ・要らないアプリは何が違うのか 〜シームレスに再開できる設計と実装〜
zozotech
PRO
0
220
AI時代、データエンジニアが一番おもろい
genshun9
0
680
白金鉱業Meetup Vol.25 アウトカムが二値のデータに対するCausal Impact
brainpadpr
0
270
その Lambda、8分で 管理者権限まで奪われます
k1nakayama
7
3.5k
Railsのように考える: See through the Master
snoozer05
PRO
5
1.2k
「どのログを見ればいい?」 から始めた サーバーレス障害解析
y_waka1
1
120
The Knowledge Spine: A Machine-Executable Ontology for Governed Marketing Activation
vananth22
0
120
なぜ「決定性」が 決定的に重要なのか? Durable Execution 基盤の数理的理解 #serverlessjp / ServerlessDays Tokyo 2026
ytaka23
3
1.1k
Von-Neumann Machines, Dreams & The Futures of IT
ufried
0
120
SREは、MCPとAutopilotをこう使え!
kazumax55
3
940
Featured
See All Featured
The untapped power of vector embeddings
frankvandijk
2
1.9k
Un-Boring Meetings
codingconduct
0
420
Building AI with AI
inesmontani
PRO
1
1.2k
Technical Leadership for Architectural Decision Making
baasie
3
570
Utilizing Notion as your number one productivity tool
mfonobong
4
590
The Cult of Friendly URLs
andyhume
79
7k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
470
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Transcript
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
1 2026年の個人的テーマ: 「計算機を燃やせ🔥」 2026 January 5 株式会社AbemaTV 黒崎 優太 @社内勉強会
AbemaTV, Inc. All Rights Reserved 黒崎 優太 Kurosaki Yuta 株式会社AbemaTV
ビジネスディベロップメント本部 株式会社サイバーエージェント CTO統括室 サイバーエージェント インターネットゼミ 2 Profile kuro_m88 kurochan
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
去年やり残したこと 3
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
去年やり残したこと 4 • おうちKubernetes • 未完成 • 完成してないので記事もかけない
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
去年やり残したこと 5 • なぜやる気をなくしたのか • 引越しによりIPv6が失われたから(30%) • 趣味なので余計なこだわりを入れたから(70%)
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
余計なこだわりによる失敗 6 • 作りたかったおうちk8s ◦ CPU: 32コア(8 x 4node) ◦ メモリ: 128GB(32GB x 4node) ◦ NVMe: 2TB(512GB x 4node) • 余計なこだわり ◦ root ZFS ◦ Kubernetes on LXD ◦ IPv4/IPv6 デュアルスタック
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
余計なこだわり 7 • 最後にぶちあたった問題 • VMはそこまで重要じゃなかったので無視しておけばよかった
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
年末年始に再チャレンジ 8 • ChatGPTによりだいぶトラブルシューティングが早くなった(事故るのも高速に) ◦ ChatGPT「「自分が座っている椅子を引き抜く」操作です。」 ◦ ChatGPT「養生シートが剥がれた瞬間に事故る設計は、インフラ屋は取りません。」 ◦ 色々事故りながらroot ZFS化に成功🎉 • VPNなどを活用してIPv6も自宅に引き込んだ
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
9 閑話休題
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
自宅クラスタを負荷試験していた時のこと 10 • CPU内部の温度センサのメトリクスを取得 • 負荷をかけるとCPU温度が一気に上がる🔥 ◦ 負荷をかけながらCPU触った人はわかる ◦ ファンの回転数が急に上がる感じ • 忘れかけていた気持ちを思い出す😴 ◦ 本日のテーマ
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
もやもやするグラフ 11 • ありがちなやつ(by nano banana🍌) • NodeのCPUキャパシティは埋まっているが実使用率が低すぎる ◦ コスト云々の問題が一般的には大きいが、個人的には気持ちの問題がデカい ◦ 持てるCPUの能力を使い切って(燃えるくらい🔥)CPUをアチアチにしたい🔥
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
もやもやするグラフ 12 • 何がいけないのか? • 必要以上にrequestしている ◦ それはそうだけど、経験則上では下げれば解決とはなりにくい • 割り当てられたリソースを使い切りやすい設計になっていない ◦ 本題 • CPUに限った話でもない ◦ が、我々の開発するサーバの多くはweb APIであるから、メモリ、ディスク、ネットワークなどの帯域がボトルネックになること は少ないのと、そちらがボトルネックになるような I/Oヘビーなワークロードは何かしら 特化したミドルウェアやマネージドサービスで済んでしまうことも多い (済まない用途も開発したい🔥) ◦ という背景のもと、今回は我々が実装するものは基本的に CPU intensiveになるように作るべきという前提にする
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 13 • 待たせない、とにかく仕事させる 🔥 • 数年前にビジメンバー向けに話したやつ ◦ アムダールの法則 ◦ 非同期処理 ◦ など https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 14 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 15 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 16 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 17 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 18 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 19 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 20 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
CPUを燃やす(比喩)には🔥 21 https://speakerdeck.com/kurochan/what-does-it-mean-to-scalability
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
並列度を高く保つためのプログラミングモデルの例 22 • ノンブロッキングI/O + I/O多重化 ◦ いわゆるC10K問題で出てくるやつ • GoにおけるCSP(Communicating Sequential Processes) ◦ 特にgoroutineとchannel ◦ CSPがあるからM:Nモデルが活かしやすい(実行単位とスレッド) • Actor Model • Reactive Streaming
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
Actor Model 23 • 状態を持つ独立したActor同士が共有メモリを使わず非同期メッセージでやりとりする
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
Reactive Streaming 24 • 非同期なデータの流れを背圧(backpressure)で制御しながら処理するモデル
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
並列度を高く保つためのプログラミングモデルたち 25 • それぞれ独立に存在しているわけでもない • プログラミング(同一プロセス)の世界だけでなく、アーキテクチャにも適用可能 • 例: Goのchannel / Cloud Pub/Sub / Amazon Kinesis • 同期処理と非同期処理を分離することを考えてみる ◦ できる限り小さな同期処理とそれ以外の非同期処理
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
広告計測サーバの例 26 • 極端なスパイクをする • 全てを処理しきろうと思うとピークに合わせて待機が必要 • 軽量なフロントエンド(Cloud Run)とそれ以外をworkerに分離するモデルの検証 ◦ 間をつなぐバッファとしてのPub/Sub
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
広告計測サーバの例 27 • 同期処理部分(Cloud Run)は軽量なのですぐにスケール ◦ 大量の状態(並列リクエスト)を処理する • 急激にXX万rps程度流しても受け止められた ◦ 一瞬で0から700コンテナ立ち上がってすぐに300程度に落ち着いた
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
カウンタの部分運用開始 28 • これのこと https://speakerdeck.com/hono0130/cloud-native-days-winter-2025-distributed-counter
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
カウンタの部分運用開始 29 https://speakerdeck.com/hono0130/cloud-native-days-winter-2025-distributed-counter
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
カウンタの部分運用開始 30 https://speakerdeck.com/hono0130/cloud-native-days-winter-2025-distributed-counter
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
カウンタの部分運用開始 31 https://speakerdeck.com/hono0130/cloud-native-days-winter-2025-distributed-counter
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
広告計測用カウンタの例 32 • リクエスト増に対して並列度の上昇によりスループット増、遅延増加ほぼなし ◦ 仮に処理が間に合わなくても遅延が増加するのみ、メモリ使用量も予測可能 ▪ Reactive Streamingっぽさがある?
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
遅延と引き換えに安定性とスループットを得る 33 • 基本的には同期処理と非同期処理の間のオーバーヘッドは増加するはず • 非同期処理は終了(deadline)の約束がないので処理が間に合わないと遅延が増加する ◦ その代わりスパイクしても遅延の形で吸収しやすい(面積のイメージ) • QueueではなくStack的な思考をすると…? ◦ ベストエフォートなAPIの場合はStackもいい ◦ 広告のビジネス要件に照らすと…?
AbemaTV, Inc. All Rights Reserved AbemaTV, Inc. All Rights Reserved
で、おうち Kubernetesの進捗は? 34 • Underlayが出来上がっただけでまだこれからです • 2026年も頑張って開発しましょう💪 ←全ノード起動したらキラキラしてた
AbemaTV, Inc. All Rights Reserved