Le mercredi 6 mars 2024, 04:33:26 CET Pierre-Philipp Braun a écrit :
> yolo,
> 
> > J'utilise incus (https://github.com/lxc/incus 
> > <https://github.com/lxc/incus>) pour ça, qui est le fork de lxd par ses 
> > créateurs / mainteneurs originels (suite à un mouvement de Canonical 
> > pour réintégrer lxd à ses infrastructures).
> 
> Est-il vrai qu'il est possible de migrer à chaud des conteneurs LXC d'un 
> nœud à l'autre ?  Vous confirmez que cela fonctionne ?  C'est stable ?

non, ça ne marche pas vraiment. D'ailleurs, la doc est explicite sur ce sujet :

"Live migration means migrating an instance while it is running. This method is 
supported for virtual machines. For containers, there is limited support.
...
For containers, there is limited support for live migration using CRIU. 
However, because of extensive kernel dependencies, only very basic containers 
(non-systemd containers without a network device) can be migrated reliably. In 
most real-world scenarios, you should stop the container, move it over and then 
start it again.

If you want to use live migration for containers, you must first make sure that 
CRIU is installed on both systems.

To optimize the memory transfer for a container, set the 
migration.incremental.memory property to true to make use of the pre-copy 
features in CRIU. With this configuration, Incus instructs CRIU to perform a 
series of memory dumps for the container. After each dump, Incus sends the 
memory dump to the specified remote. In an ideal scenario, each memory dump 
will decrease the delta to the previous memory dump, thereby increasing the 
percentage of memory that is already synced. When the percentage of synced 
memory is equal to or greater than the threshold specified via 
migration.incremental.memory.goal, or the maximum number of allowed iterations 
specified via migration.incremental.memory.iterations is reached, Incus 
instructs CRIU to perform a final memory dump and transfers it."

> 
> Franchement je me demande comment cela est possible.  C'est comme avoir 
> leur beur et l'argent du beur.  (les avantages de la virtu hardware + 
> virtu système)

En effet :-) !


_______________________________________________
Liste de diffusion du %(real_name)s
http://www.frsag.org/

Répondre à