Skip to content

Commit 96670d3

Browse files
Shikha JhalaRichardHoch
authored andcommitted
Correctly adds resource requests/limits to Troubleshooting
1 parent b52f624 commit 96670d3

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

backup_and_restore/application_backup_and_restore/troubleshooting.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,29 @@ include::modules/velero-obtaining-by-accessing-binary.adoc[leveloffset=+1]
2626
include::modules/oadp-debugging-oc-cli.adoc[leveloffset=+1]
2727
include::modules/migration-debugging-velero-resources.adoc[leveloffset=+1]
2828

29+
30+
31+
[id="oadp-pod-crash-resource-request"]
32+
== Pods crash or restart due to lack of memory or CPU
33+
34+
If a Velero or Restic pod crashes due to a lack of memory or CPU, you can set specific resource requests for either of those resources.
35+
36+
include::modules/oadp-pod-crash-set-resource-request-velero.adoc[leveloffset=+2]
37+
include::modules/oadp-pod-crash-set-resource-request-restic.adoc[leveloffset=+2]
38+
39+
[IMPORTANT]
40+
====
41+
The values for the resource request fields must follow the same format as Kubernetes resource requirements.
42+
Also, if you do not specify `configuration.velero.podConfig.resourceAllocations` or `configuration.restic.podConfig.resourceAllocations`, the default `resources` specification for a Velero pod or a Restic pod is as follows:
43+
44+
[source,yaml]
45+
----
46+
requests:
47+
cpu: 500m
48+
memory: 128Mi
49+
----
50+
====
51+
2952
[id="issues-with-velero-and-admission-workbooks"]
3053
== Issues with Velero and admission webhooks
3154

virt/install/preparing-cluster-for-virt.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@ Live migration has the following requirements:
6767
* Sufficient RAM and network bandwidth.
6868
* If the virtual machine uses a host model CPU, the nodes must support the virtual machine's host model CPU.
6969

70+
[NOTE]
71+
====
72+
You must ensure that there is enough memory request capacity in the cluster to support node drains that result in live migrations. You can determine the approximate required spare memory by using the following calculation:
73+
74+
----
75+
Product of (Maximum number of nodes that can drain in parallel) and (Highest total VM memory request allocations across nodes)
76+
----
77+
78+
The default xref:../../virt/live_migration/virt-live-migration-limits.adoc#virt-live-migration-limits[number of migrations that can run in parallel] in the cluster is 5.
79+
====
80+
81+
7082
// The HA section actually belongs to OpenShift, not Virt
7183
[id="cluster-high-availability-options_{context}"]
7284
== Cluster high-availability options

0 commit comments

Comments
 (0)