1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

CNV#48412: devEnableEvictionsInBackground TP docs

This commit is contained in:
danielclowers
2024-10-17 14:36:23 -04:00
committed by openshift-cherrypick-robot
parent b485d9b958
commit 0308d76c32
3 changed files with 11 additions and 8 deletions

View File

@@ -58,11 +58,11 @@ endif::[]
... To evict pods instead of simulating the evictions, change the *Mode* field to *Automatic*.
ifdef::virt[]
... Expand the *Profiles* section and select `DevPreviewLongLifecycle`. The `AffinityAndTaints` profile is enabled by default.
... Expand the *Profiles* section and select `LongLifecycle`. The `AffinityAndTaints` profile is enabled by default.
+
[IMPORTANT]
====
The only profile currently available for {VirtProductName} is `DevPreviewLongLifecycle`.
The only profile currently available for {VirtProductName} is `LongLifecycle`.
====
You can also configure the profiles and settings for the descheduler later using the OpenShift CLI (`oc`).

View File

@@ -90,7 +90,7 @@ Do not enable `CompactAndScale` with any of the following profiles: `LifecycleAn
endif::nodes[]
ifdef::virt[]
Use the Technology Preview `DevPreviewLongLifecycle` profile to enable the descheduler on a virtual machine. This is the only descheduler profile currently available for {VirtProductName}. To ensure proper scheduling, create VMs with CPU and memory requests for the expected load.
Use the `LongLifecycle` profile to enable the descheduler on a virtual machine. This is the only descheduler profile currently available for {VirtProductName}. To ensure proper scheduling, create VMs with CPU and memory requests for the expected load.
endif::virt[]
// Show LongLifecycle profile both for virt and nodes

View File

@@ -28,7 +28,7 @@ spec:
descheduler.alpha.kubernetes.io/evict: "true"
----
. If you did not already set the `DevPreviewLongLifecycle` profile in the web console during installation, specify the `DevPreviewLongLifecycle` in the `spec.profile` section of the `KubeDescheduler` object:
. Configure the `KubeDescheduler` object with the `LongLifecycle` profile and enable background evictions for improved VM eviction stability during live migration:
+
[source,yaml]
----
@@ -40,9 +40,12 @@ metadata:
spec:
deschedulingIntervalSeconds: 3600
profiles:
- DevPreviewLongLifecycle
mode: Predictive <1>
- LongLifecycle <1>
mode: Predictive <2>
devEnableEvictionsInBackground: true <3>
----
<1> By default, the descheduler does not evict pods. To evict pods, set `mode` to `Automatic`.
<1> You can only set the `LongLifecycle` profile. This profile balances resource usage between nodes.
<2> By default, the descheduler does not evict pods. To evict pods, set `mode` to `Automatic`.
<3> Enabling `devEnableEvictionsInBackground` allows evictions to occur in the background, improving stability and mitigating oscillatory behavior during live migrations.
The descheduler is now enabled on the VM.
The descheduler is now enabled on the VM.