Skip to content

Commit 8e77bc9

Browse files
committed
EOD Wed
1 parent b063969 commit 8e77bc9

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

documentation/modules/about-configuring-target-vm-scheduling.adoc

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,27 @@ Target VM scheduling is designed to help you with the following use cases, among
2121

2222
* *Working with Fluctuating Demands*: In situations where demand for a service might vary significantly, rules for scheduling when to spin up spinning up of VMs based on demand allows you to use your resources more efficiently.
2323

24-
== VM target scheduling options
24+
== VM target scheduling rule options
2525

2626
You can use the following options to schedule when your target VMs are powered on:
2727

28+
* *Node Selector* rule: This is both the simplest and strictest rule. You define a set of mandatory key/value label pairs that the target node must possess. If no node on the cluster has all the labels specified, the VM is not scheduled and it remains in a `Pending` state.
2829

30+
For example, you might have a premium service level and want to migrate VMs for it to a specific node. You could create a key named `license-tier` and a value named `gold`. You could then use the *Node Selector* option to create a rule that certain VMs can only be switched `on` if migrated to a node for which `license pair=gold` is true.
31+
32+
* *Node Affinity and Node Anti-Affinity* rules: These rules offer more flexible placement control than rigid Node Selector rules. _Node Affinity_ rules let schedule VMs to run on selected nodes. _Node Anti-affinity_ rules let you prevent VMs from being scheduled to run on selected nodes.
33+
34+
Both types of rules allow you to include both _hard_ and _soft_ conditions in the same rule. A hard condition is a requirement, and a soft condition is a preference.
35+
36+
For example, whereas a Node Selector rule might require that a VM must be migrated only to a specific cluster, a Node Affinity rule with a hard condition might require that a VM be migrated to a specific cluster or that it be migrated to an SSD disk, but it cannot bebe
37+
38+
** Node Affinity rules
39+
40+
41+
Node Affinity: Defines rules to require (hard rule) or prefer (soft rule) that the VM is scheduled on nodes that match certain labels.
42+
43+
Node Anti-Affinity: Defines rules to require (hard rule) or prefer that the VM avoids scheduling on nodes that match certain characteristics. This is vital for High Availability (HA), as it ensures redundant VMs are separated across different failure domains (e.g., nodes in separate availability zones).
44+
45+
Custom Scheduler Name: If your OpenShift environment uses a secondary or specialized scheduler (in addition to the default kube-scheduler) to handle specific workload types, you can instruct MTV to apply this custom scheduler name to the target VM's manifest. This directs the VM to use the specialized logic designed for that workload.
46+
47+
By integrating these controls into the migration plan, you ensure that the complex scheduling logic required for modern applications is defined upfront, preventing post-migration performance degradation or unexpected scheduling errors.

0 commit comments

Comments
 (0)