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
Getting Started to CRIU
Search
@ジュジュ
March 07, 2019
Technology
150
0
Share
Getting Started to CRIU
@ジュジュ
March 07, 2019
More Decks by @ジュジュ
See All by @ジュジュ
チーム分割においていかれたアラートをチームで責任を持てる形に再設計した
juju62q
0
200
ボトムアップでSLOを導入 2年半運用して分かった失敗と変化
juju62q
2
1.2k
Firecracker Snapshottingを調べてみた
juju62q
1
620
SLOを活用した技術的改善
juju62q
10
15k
IAM Role for Pods and Instance Meta Data Service
juju62q
1
1.6k
telepresence handson
juju62q
2
5.4k
Wanna Use Vitess in Orientation
juju62q
6
1.4k
machine learning with rancher and K8s on prem
juju62q
5
480
docker-handson-for-researcher
juju62q
3
340
Other Decks in Technology
See All in Technology
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
16k
え!?初参加で 300冊以上 も頒布!? これは大成功!そのはずなのに わいの財布は 赤字 の件
hellohazime
0
150
自分のハンドルは自分で握れ! ― 自分のケイパビリティを増やし、メンバーのケイパビリティ獲得を支援する ― / Take the wheel yourself
takaking22
1
780
最初の一歩を踏み出せなかった私が、誰かの背中を押したいと思うようになるまで / give someone a push
mii3king
0
150
AI時代のガードレールとしてのAPIガバナンス
nagix
0
170
Rapid Start: Faster Internet Connections, with Ruby's Help
kazuho
1
130
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
74k
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
240
ARIA Notifyについて
ryokatsuse
1
100
明日からドヤれる!超マニアックなAWSセキュリティTips10連発 / 10 Ultra-Niche AWS Security Tips
yuj1osm
0
510
Azure PortalなどにみるWebアクセシビリティ
tomokusaba
0
360
DevOpsDays Tokyo 2026 見えない開発現場を、見える投資に変える
rojoudotcom
3
200
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
290
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
220
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
1
180
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
270
Faster Mobile Websites
deanohume
310
31k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
120
Producing Creativity
orderedlist
PRO
348
40k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Transcript
CRIUで遊んでみた 2019/03/07 OthloTechLT大会@クックパッド 岡野兼也
$ whoami name: - 岡野兼也 - @ジュジュ belonging: - 名古屋大学
interest: - CloudNative - SRE dream: - 働かないこと hobbies: - 登山 - キャンプ
CRIU - Checkpoint and Restore In Userspaceの略称 - Linuxのアプリケーションの実行状態を Checkpointとして固めてRestoreできる
CRIUを使うとアプリが動いている状態の コンテナを走らせることができる!
Checkpoint $ docker checkpoint create ${container_name} ${checkpoint_name} - コンテナの今の状態を保存する -
作ったチェックポイントに基づいてリストアできる
Restore $ docker container start --checkpoint ${checkpoint_name} ${container_name} - チェックポイントから再実行をする
- 何回でも同じチェックポイントから実行可能
実際につかってみる
もう一回リストアする!
解決できる問題① コンテナの起動がいくら早くても アプリの起動が遅ければ遅くなってしまう 初めからからアプリの状態を 記憶できているので爆速起動!!
解決できる問題② k8sがいくらうまいことやっているといっても ノードメンテのために落とすと影響あるよね… ファイルとして状態を持てるので ライブマイグレーションができる!!
ご清聴ありがとうございました ※CRIUはDockerのexperimentalな機能で、デフォルトでは使えません