Skip to content

Commit 47008c9

Browse files
authored
Merge pull request #103045 from abrennan89/CNV-65188
CNV-65188: Update resource limit minimum values
2 parents 4c29f23 + f8e4980 commit 47008c9

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

modules/virt-setting-resource-quota-limits-for-vms.adoc

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ $ oc label ns/my-virtualization-project alpha.kubevirt.io/auto-memory-limits-ra
2121
Avoid managing resource quota limits manually. To prevent misconfigurations or scheduling issues, rely on the automatic resource limit management provided by {VirtProductName} unless you have a specific need to override the defaults.
2222
====
2323

24-
25-
Resource quotas that only use requests automatically work with VMs. If your resource quota uses limits, you must manually set resource limits on VMs. Resource limits must be at least 100 MiB larger than resource requests.
24+
Resource quotas that only use requests automatically work with VMs. If your resource quota uses limits, you must manually set resource limits on VMs.
25+
Memory resource limits, defined by the `spec.template.spec.domain.resources.limits.memory` value, must be at least 500 MiB, or 2% larger than the `spec.template.spec.domain.memory.guest` value.
2626

2727
.Procedure
2828

@@ -39,13 +39,19 @@ spec:
3939
template:
4040
spec:
4141
domain:
42-
# ...
42+
memory:
43+
guest: 128Mi
4344
resources:
44-
requests:
45-
memory: 128Mi
4645
limits:
47-
memory: 256Mi <1>
46+
memory: 256Mi
4847
----
49-
<1> This configuration is supported because the `limits.memory` value is at least `100Mi` larger than the `requests.memory` value.
48+
+
49+
where
50+
+
51+
spec.template.spec.domain.memory.guest:: Specifies the actual amount of RAM that is shown to the guest operating system (OS) in the VM.
52+
+
53+
spec.template.spec.domain.resources.limits.memory:: Specifies the hard limit for total memory consumption by the `virt-launcher` pod that hosts the VM. This limit must account for the guest OS RAM plus the hypervisor overhead.
54+
+
55+
This example configuration is supported because the `spec.template.spec.domain.resources.limits.memory` value is at least `100Mi` larger than the `spec.template.spec.domain.memory.guest` value.
5056

5157
. Save the `VirtualMachine` manifest.

0 commit comments

Comments
 (0)