Skip to content

Commit fcbdf08

Browse files
authored
Merge pull request #85991 from jherrman/CNV-50922
OSDOCS#50922: Fixing doc for setting up memory overcommit
2 parents 1dfdbf9 + b4a87e5 commit fcbdf08

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

modules/virt-using-wasp-agent-to-configure-higher-vm-workload-density.adoc

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,29 @@ $ oc label namespace wasp openshift.io/cluster-monitoring="true"
265265
. Enable memory overcommitment in {VirtProductName} by using the web console or the CLI.
266266
+
267267
--
268-
.Web console
269-
.. In the {product-title} web console, go to *Virtualization* -> *Overview* -> *Settings* -> *General settings* -> *Memory density*.
270-
.. Set *Enable memory density* to on.
268+
* Web console
269+
+
270+
. In the {product-title} web console, go to *Virtualization* -> *Overview* -> *Settings* -> *General settings* -> *Memory density*.
271+
. Set *Enable memory density* to on.
271272
272-
.CLI
273-
* Run the following command:
273+
* CLI
274+
** Configure your {VirtProductName} to enable higher memory density and set the overcommit rate:
275+
+
276+
[source,terminal]
277+
----
278+
$ oc -n openshift-cnv patch HyperConverged/kubevirt-hyperconverged --type='json' -p='[ \
279+
{ \
280+
"op": "replace", \
281+
"path": "/spec/higherWorkloadDensity/memoryOvercommitPercentage", \
282+
"value": 150 \
283+
} \
284+
]'
285+
----
274286
+
287+
.Successful output
275288
[source,terminal]
276289
----
277-
$ oc patch --type=merge \
278-
-f <../manifests/openshift/hco-set-memory-overcommit.yaml> \
279-
--patch-file <../manifests/openshift/hco-set-memory-overcommit.yaml>
290+
hyperconverged.hco.kubevirt.io/kubevirt-hyperconverged patched
280291
----
281292
--
282293
@@ -326,13 +337,13 @@ If swap is provisioned, an amount greater than zero is displayed in the `Swap:`
326337
+
327338
[source,terminal]
328339
----
329-
$ oc get -n openshift-cnv HyperConverged kubevirt-hyperconverged -o jsonpath="{.spec.higherWorkloadDensity.memoryOvercommitPercentage}"
340+
$ oc -n openshift-cnv get HyperConverged/kubevirt-hyperconverged -o jsonpath='{.spec.higherWorkloadDensity}{"\n"}'
330341
----
331342
+
332343
.Example output
333344
[source,terminal]
334345
----
335-
150
346+
{"memoryOvercommitPercentage":150}
336347
----
337348
+
338349
The returned value must match the value you had previously configured.

0 commit comments

Comments
 (0)