P.Haul: live migration using CRIU - Pavel Emelyanov
Linux Plumbers 2015, Checkpoint and Restore In Userspace
Notes - https://etherpad.openstack.org/p/LPC2015_Checkpoint_Restore
3. Almost live migration using CRIUAlmost live migration using CRIU
• dst_host# criu page-server -D images/
• src_host# criu pre-dump -t 123 -D images/pre/
--page-server --address dst_host --port port
--track-mem
• src_host# criu dump -t 123 -D images/dump/ --prev-images ../pre/
• src_host# scp -r images/dump/ user@dst_host:images/
• dst_host# criu restore -D images/ -d
3
4. Live migration using CRIULive migration using CRIU
• Perform nodes compatibility checks
– CPUs
– Kernel modules
– Available resources
• Do pre-dumps in a loop
– Or post-copy memory transfer (userfaultfd)
• Copy FS if not shared
• Don't forget container config
4
5. Live migration using P.HaulLive migration using P.Haul
• dst_host# p.haul-service --port 123
• src_host# p.haul ovz 100 dst_host:123
5
6. Where P.Haul currently isWhere P.Haul currently is
• Written in python
• Lives at github.com/xemul/p.haul
• Knows how to live-migration OpenVZ container
• Calls rsync for chroot()-ed container on local FS
6
7. Future of P.Haul?Future of P.Haul?
• Migrate LXC & Docker containers
• Smarter iterations
– Better estimate of memory xfer
– Synchronize memory and disk/FS xfer
• Shared disk/FS auto-detection
• Post-copy live migration
• Send images over the wire (CRIU)
7
To install a font:
Open Fonts by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Fonts.
Click File, and then click Install New Font. ...
In the Add Fonts dialog box, under Drives, click the drive where the font that you want to install is located.
http://windows.microsoft.com/en-us/windows-vista/install-or-uninstall-fonts
<number>
To install a font:
Open Fonts by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Fonts.
Click File, and then click Install New Font. ...
In the Add Fonts dialog box, under Drives, click the drive where the font that you want to install is located.
http://windows.microsoft.com/en-us/windows-vista/install-or-uninstall-fonts
<number>
To install a font:
Open Fonts by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Fonts.
Click File, and then click Install New Font. ...
In the Add Fonts dialog box, under Drives, click the drive where the font that you want to install is located.
http://windows.microsoft.com/en-us/windows-vista/install-or-uninstall-fonts
<number>
To install a font:
Open Fonts by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Fonts.
Click File, and then click Install New Font. ...
In the Add Fonts dialog box, under Drives, click the drive where the font that you want to install is located.
http://windows.microsoft.com/en-us/windows-vista/install-or-uninstall-fonts
<number>
To install a font:
Open Fonts by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Fonts.
Click File, and then click Install New Font. ...
In the Add Fonts dialog box, under Drives, click the drive where the font that you want to install is located.
http://windows.microsoft.com/en-us/windows-vista/install-or-uninstall-fonts
<number>
To install a font:
Open Fonts by clicking the Start button , clicking Control Panel, clicking Appearance and Personalization, and then clicking Fonts.
Click File, and then click Install New Font. ...
In the Add Fonts dialog box, under Drives, click the drive where the font that you want to install is located.
http://windows.microsoft.com/en-us/windows-vista/install-or-uninstall-fonts
<number>