$ oc edit hco -n openshift-cnv kubevirt-hyperconverged
Apply live migration limits and timeouts so that migration processes do
not overwhelm the cluster. Configure these settings by editing the
HyperConverged
custom resource (CR).
Configure live migration limits and timeouts for the cluster by updating the HyperConverged
custom resource (CR), which is located in the
openshift-cnv
namespace.
Edit the HyperConverged
CR and add the necessary live migration parameters.
$ oc edit hco -n openshift-cnv kubevirt-hyperconverged
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
name: kubevirt-hyperconverged
namespace: openshift-cnv
spec:
liveMigrationConfig: (1)
bandwidthPerMigration: 64Mi
completionTimeoutPerGiB: 800
parallelMigrationsPerCluster: 5
parallelOutboundMigrationsPerNode: 2
progressTimeout: 150
1 | In this example, the spec.liveMigrationConfig array contains the default values for each field. |
You can restore the default value for any |
Parameter | Description | Default |
---|---|---|
|
Number of migrations running in parallel in the cluster. |
5 |
|
Maximum number of outbound migrations per node. |
2 |
|
Bandwidth limit of each migration, where the value is the quantity of bytes per second. For example, a value of |
0 [1] |
|
The migration is canceled if it has not completed in this time, in seconds
per GiB of memory. For example, a virtual machine instance with 6GiB memory times out if it has
not completed migration in 4800 seconds. If the |
800 |
|
The migration is canceled if memory copy fails to make progress in this time, in seconds. |
150 |
The default value of 0
is unlimited.