Skip to content

Commit ea82af6

Browse files
authored
Merge pull request #33094 from ousleyp/cnv-10277-live-migration
CNV-10277: live migration limits update
2 parents 8d5c7d2 + 53e1389 commit ea82af6

File tree

2 files changed

+21
-34
lines changed

2 files changed

+21
-34
lines changed

modules/virt-configuring-live-migration-limits.adoc

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,50 +6,37 @@
66
[id="virt-configuring-live-migration-limits_{context}"]
77
= Configuring live migration limits and timeouts
88

9-
Configure live migration limits and timeouts for the cluster by adding updated
10-
key:value fields to the `kubevirt-config` configuration file, which is located in the
9+
Configure live migration limits and timeouts for the cluster by updating the `HyperConverged` custom resource (CR), which is located in the
1110
`openshift-cnv` namespace.
1211

1312
.Procedure
1413

15-
* Edit the `kubevirt-config` configuration file and add the necessary
16-
live migration parameters. The following example shows the default values:
14+
* Edit the `HyperConverged` CR and add the necessary live migration parameters.
1715
+
18-
1916
[source,terminal]
2017
----
21-
$ oc edit configmap kubevirt-config -n openshift-cnv
18+
$ oc edit hco -n openshift-cnv kubevirt-hyperconverged
2219
----
2320
+
2421
.Example configuration file
2522
[source,yaml]
2623
----
27-
apiVersion: v1
28-
data:
29-
default-network-interface: masquerade
30-
feature-gates: DataVolumes,SRIOV,LiveMigration,CPUManager,CPUNodeDiscovery,Sidecar,Snapshot
31-
migrations: |-
32-
parallelMigrationsPerCluster: "5"
33-
parallelOutboundMigrationsPerNode: "2"
34-
bandwidthPerMigration: "64Mi"
35-
completionTimeoutPerGiB: "800"
36-
progressTimeout: "150"
37-
machine-type: pc-q35-rhel8.3.0
38-
selinuxLauncherType: virt_launcher.process
39-
smbios: |-
40-
Family: Red Hat
41-
Product: Container-native virtualization
42-
Manufacturer: Red Hat
43-
Sku: 2.6.0
44-
Version: 2.6.0
45-
kind: ConfigMap
24+
apiVersion: hco.kubevirt.io/v1beta1
25+
kind: HyperConverged
4626
metadata:
47-
creationTimestamp: "2021-03-26T18:01:04Z"
48-
labels:
49-
app: kubevirt-hyperconverged
50-
name: kubevirt-config
27+
name: kubevirt-hyperconverged
5128
namespace: openshift-cnv
52-
resourceVersion: "15371295"
53-
selfLink: /api/v1/namespaces/openshift-cnv/configmaps/kubevirt-config
54-
uid: <uuid>
29+
spec:
30+
liveMigrationConfig: <1>
31+
bandwidthPerMigration: 64Mi
32+
completionTimeoutPerGiB: 800
33+
parallelMigrationsPerCluster: 5
34+
parallelOutboundMigrationsPerNode: 2
35+
progressTimeout: 150
5536
----
37+
<1> In this example, the `spec.liveMigrationConfig` array contains the default values for each field.
38+
+
39+
[NOTE]
40+
====
41+
You can restore the default value for any `spec.liveMigrationConfig` field by deleting that key/value pair and saving the file. For example, delete `progressTimeout: <value>` to restore the default `progressTimeout: 150`.
42+
====

virt/live_migration/virt-live-migration-limits.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ include::modules/virt-document-attributes.adoc[]
55

66
toc::[]
77

8-
Live migration limits and timeouts are applied so that migration processes do
8+
Apply live migration limits and timeouts so that migration processes do
99
not overwhelm the cluster. Configure these settings by editing the
10-
`kubevirt-config` configuration file.
10+
`HyperConverged` custom resource (CR).
1111

1212
include::modules/virt-configuring-live-migration-limits.adoc[leveloffset=+1]
1313
include::modules/virt-live-migration-limits-reftable.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)