Changes

120 bytes added ,  18:08, 12 January 2023
m
Add kill command
Line 1: Line 1:  
{{Note|The main article about live-migration is [[P.Haul|here]]. The article below is just description of how it can be done.}}
 
{{Note|The main article about live-migration is [[P.Haul|here]]. The article below is just description of how it can be done.}}
 +
 +
Live migration attempts to provide a seamless transfer of service between physical machines without impacting client processes or applications.
    
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.
 
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.
Line 28: Line 30:  
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]# criu restore --tree <pid> --images-dir <path-to-images>
+
  [dst]# criu restore --images-dir <path-to-images>
    
=== Kill ===
 
=== Kill ===
 
If everything went OK you can return on the source node and kill stopped tasks on it.
 
If everything went OK you can return on the source node and kill stopped tasks on it.
   −
  [src]# FIXME put command here
+
  [src]# kill <pid>
    
== Notes ==
 
== Notes ==
16

edits