Changes

Jump to navigation Jump to search
438 bytes added ,  12:36, 13 January 2019
m
→‎Restore: Using -t with criu restore is obsoleted
Line 1: Line 1: −
This page describes how to reduce the freeze time of an application by using the [[memory changes tracking]] ability to perform [http://en.wikipedia.org/wiki/Live_migration#Pre-copy_memory_migration pre-copy memory migration].
+
This page describes how to reduce the freeze time of an application by using the [[memory changes tracking]] ability to perform [[wikipedia:Live_migration#Pre-copy_memory_migration|pre-copy memory migration]].
    
{{Note|It is assumed that you already read [[Live migration]] article before this one.}}
 
{{Note|It is assumed that you already read [[Live migration]] article before this one.}}
Line 22: Line 22:     
  [src]# criu dump --tree <pid> --images-dir <path-to-existing-directory-B> \
 
  [src]# criu dump --tree <pid> --images-dir <path-to-existing-directory-B> \
   --prev-images-dir <path-to-directory-A-relative-to-B> --leave-stopped
+
   --prev-images-dir <path-to-directory-A-relative-to-B> --leave-stopped --track-mem
    
Note that:
 
Note that:
Line 33: Line 33:     
  [src]# scp -r <path-to-images-dir> <dst>:/<path-to-images>
 
  [src]# scp -r <path-to-images-dir> <dst>:/<path-to-images>
 +
 +
or using rsync
 +
 +
[src]# rsync -rl <path-to-images-dir>/ <dst>:<path-to-images>
 +
 +
Note: It is important to enable "copy symlinks as symlinks" (<code>-l</code> for <code>rsync</code>) to ensure that symlinks are preserved between previous directories. When <code>-r</code> is passed to <code>scp</code> it will follow symbolic links encountered in the tree traversal.
    
=== Restore ===
 
=== Restore ===
 
On the destination node restore the apps from images:
 
On the destination node restore the apps from images:
   −
  [dst]# criu restore --tree <pid> --images-dir <path-to-images>
+
  [dst]# criu restore --images-dir <path-to-images>
    
=== Kill ===
 
=== Kill ===
Line 43: Line 49:     
  [src]# FIXME put command here
 
  [src]# FIXME put command here
 +
 +
== Further reading ==
 +
 +
* [[P.Haul]] is the Go extension to CRIU doing [[live migration]]
    
[[Category: HOWTO]]
 
[[Category: HOWTO]]
 
[[Category: Memory]]
 
[[Category: Memory]]
 
[[Category: Live migration]]
 
[[Category: Live migration]]
277

edits

Navigation menu