Stateful Container Migration

This topic describes container migration and the external persistent storage pool used when migrating containers between hosts in HPE Ezmeral Container Platform deployments that implement EPIC.

In deployments of HPE Ezmeral Container Platform that implement EPIC, you may specify an external persistent storage pool for tenants and/or AI/ML projects using the Application Persistent Storage tab of the System Settings screen (see Application Persistent Storage Tab). Persistent storage exists either on hyper-converged resources or on a remote storage resource that is pointed to but not managed by HPE Ezmeral Container Platform. The persistent storage pool can then be used when migrating virtual containers among hosts.



Persistent storage can be implemented across some or all hosts, as shown here:



You can create, expand, and shrink storage capacity just as you would any other resource. This feature allows you to migrate containers between hosts by (default) preserving the following critical container folders for ongoing use:

The contents of other folders can be preserved during container migration by specifying their names in the metadata JSON file when creating a new application image generated using the App Workbench.

Use Cases

Big Data applications such as Hadoop and Spark offer robust high availability capabilities; however, some enterprise customers have operational requirements that require the ability to move virtual nodes/containers from one host to another. These operational requirements include:

Enabling Container Migration

Once you have enabled persistent storage, the next step is to create one or more flavors that include at least 20GB of persistent storage, as described in Creating a New Flavor and Editing an Existing Flavor. Containers created using a flavor with persistent storage enabled will be preserved as described above. You may also assign a persistent storage quota to tenants, as described in Tenant and Project Quotas.

Note: Containers created using a flavor that does not have persistent storage enabled will not benefit from this feature, even if you later edit the flavor to enable persistent storage.
Note: You may create a flavor that specifies persistent storage even if no persistent storage has been defined in the Application Persistent Storage tab; however, an error will be returned if you attempt to use this flavor before enabling persistent storage.
Note: The persistent storage resource must have enough free capacity to accommodate the sum of all tenant persistent storage quotas or to accommodate the amount of persistent storage specified in all applicable flavors times the number of containers that use the flavors, whichever is greater. Further, if you specify a per-tenant persistent storage quota, then that quota must be large enough to accommodate the flavor-defined persistent storage times the number of containers using the applicable flavors.

There are two ways to use persistent storage to migrate a container:

The following storage systems are supported for persistent storage:

Migrating a container/virtual node has the following effects: