可能增加检查点CRIU

我想知道是否有人知道是否可以使用CRIU来增加检查点,特别是当进程是Docker时。

另外,我有兴趣拍摄快照而不会中止这个过程。

我的目标是实现从主机到另一个主机的快速(几乎)实时迁移过程。

看来CRIU现在是不可能的,但是我已经看过人们在做video了,我想这些文章大部分被发布了将近一年之后,我可能会在这里错过一些东西。

是的,同样的担忧。
你需要的是预选选项。

  1. 一个资源可能有帮助。 github.com/xemul/p.haul p.haul可以调整掠夺请求

  2. runC with predump option.this是你在youtube.15dockerCon上看到的。 github.com/marcosnils/runc

目前,我们有喋喋不休的方式,使docker检查点/恢复。
一个。 原生方式:github.com/boucher/docker/releases

docker checkpoint docker restore 

b.runC方式:github.com/marcosnils/cmt github.com/marcosnils/runc

 runc checkpoint runc restore 

c.external方式:

 criu dump -o dump.log -v4 -t 15215 \ -D /tmp/m1 \ --root /var/lib/docker/aufs/mnt/container id \ --manage-cgroups \ --evasive-devices \ --ext-mount-map /etc/resolv.conf:/etc/resolv.conf \ --ext-mount-map /etc/hosts:/etc/hosts \ --ext-mount-map /etc/hostname:/etc/hostname \ --ext-mount-map /etc/resolv.conf:/etc/resolv.conf 

基本上,我们更喜欢docker native和runc。 但是两者都不支持现在。 黑客的方式。 github.com/marcosnils/runc,但我加倍runC版本是旧的。

    Interesting Posts