tripleo-ansible/tripleo_ansible/ansible_plugins/filter
Emilien Macchi 0e24247d2c tripleo_container_manage: reduce downtime for minor updates
If a container has a new config (e.g. new image), it'll now be removed
right before being re-created.

Before, we were first removing that container among potential orphan
containers, and the container would be re-created later but the downtime
in the middle can be several minutes; since we batch the container
creation.

Now, we separate the cleanup of orphan containers and the ones with new
configs.

The workflow is the following:

1) Remove orphan containers (not in the config anymore, missing Labels,
   etc).

Then for each batch of containers:

2) Remove the containers where the config_data has changed.

3) Create the containers that are in the config.

This patch should reduce the downtime of containers that are updated.

Change-Id: I821d674dead4a21b7ac30b47b31b8dd34e0ecc8b
2020-02-17 13:58:46 +00:00
..
.gitkeep Update project structure 2019-06-05 14:27:22 +00:00
cpu_mask.py Handle range in the cpu_mask conversion for DPDK cores 2019-11-28 10:57:13 +00:00
helpers.py tripleo_container_manage: reduce downtime for minor updates 2020-02-17 13:58:46 +00:00