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
0
97
Getting Started to CRIU
@ジュジュ
March 07, 2019
Tweet
Share
More Decks by @ジュジュ
See All by @ジュジュ
チーム分割においていかれたアラートをチームで責任を持てる形に再設計した
juju62q
0
94
ボトムアップでSLOを導入 2年半運用して分かった失敗と変化
juju62q
2
890
Firecracker Snapshottingを調べてみた
juju62q
1
510
SLOを活用した技術的改善
juju62q
10
7.8k
IAM Role for Pods and Instance Meta Data Service
juju62q
1
1.4k
telepresence handson
juju62q
2
4.6k
Wanna Use Vitess in Orientation
juju62q
6
1.2k
machine learning with rancher and K8s on prem
juju62q
5
420
docker-handson-for-researcher
juju62q
3
290
Other Decks in Technology
See All in Technology
QAに対する超個人的な解釈 / Personal Take on QA
toma_sm
1
140
リアルお遍路+SORACOM IoT
ozk009
1
140
Fediverse Discovery Providers overview
andypiper
0
170
『GRANBLUE FANTASY Relink』キャラクターの魅力を支えるリグ・シミュレーション制作事例
cygames
0
170
なにもしてないのにNew Relicのデータ転送量が増えていたときに確認したこと
tk3fftk
2
230
サーバレスでモバイルアプリ開発! NTTコム「ビジネスdアプリ」のアーキテクチャ / The architecture of business d app
nttcom
12
250
GC24 Recap: Interface Internals
task4233
0
250
効果的なオンコール対応と障害対応
ryuichi1208
6
3.1k
テスト”ケース”駆動開発 で手戻りをなくそう
ryohma0510
0
330
Oracle Autonomous Database:サービス概要のご紹介
oracle4engineer
PRO
1
7.1k
Next.js のページ遷移を全力で止める
ypresto
9
3.5k
Kubernetesって何? -大規模なKubernetesを運用するKubernetes as a Serviceチームの話を添えて-
lycorptech_jp
PRO
0
250
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
Optimising Largest Contentful Paint
csswizardry
31
2.8k
How to name files
jennybc
75
98k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
The Cost Of JavaScript in 2023
addyosmani
42
5.7k
Building an army of robots
kneath
302
42k
For a Future-Friendly Web
brad_frost
174
9.3k
In The Pink: A Labor of Love
frogandcode
139
22k
How to train your dragon (web standard)
notwaldorf
85
5.6k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
A Tale of Four Properties
chriscoyier
155
22k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
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な機能で、デフォルトでは使えません