Changes

12 bytes removed ,  16:40, 30 April 2013
crtools -> criu
Line 1: Line 1: −
The <code>crtools</code> utility can be used to perform live migration of apps or containers. This page is a sort of HOWTO describing this.
+
The <code>criu</code> utility can be used to perform live migration of apps or containers. This page is a sort of HOWTO describing this.
    
== Migration sequence ==
 
== Migration sequence ==
Line 8: Line 8:     
=== Dump ===
 
=== Dump ===
Take tasks you're about to migrate and dump them into some place, asking <code>crtools</code> to leave them in stopped state after dump:
+
Take tasks you're about to migrate and dump them into some place, asking <code>criu</code> to leave them in stopped state after dump:
   −
  [src]# crtools dump --tree <pid> --images-dir <path-to-existing-directory> --leave-stopped
+
  [src]# criu dump --tree <pid> --images-dir <path-to-existing-directory> --leave-stopped
    
The directory you put images to can reside on the shared file-system if you're using one. In this case you can skip the Copy step and proceed to Restore.
 
The directory you put images to can reside on the shared file-system if you're using one. In this case you can skip the Copy step and proceed to Restore.
Line 22: Line 22:  
Go to the destination node and restore the apps from images on it:
 
Go to the destination node and restore the apps from images on it:
   −
  [dst]# crtools restore --tree <pid> --images-dir <path-to-images>
+
  [dst]# criu restore --tree <pid> --images-dir <path-to-images>
    
=== Kill ===
 
=== Kill ===