all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH docs v2 1/4] ha: rules: update about mixed usage of node and resource affinity rules
@ 2025-08-05  7:58 Daniel Kral
  2025-08-05  7:58 ` [pve-devel] [PATCH docs v2 2/4] ha: rules: document crs behavior for split positive resource affinity Daniel Kral
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Daniel Kral @ 2025-08-05  7:58 UTC (permalink / raw)
  To: pve-devel

As HA resources can be part of node and resource affinity rules at the
same time in simpler cases, update the relevant sections about specific
interactions and restrictions.

Signed-off-by: Daniel Kral <d.kral@proxmox.com>
---
changes since v1:
- s/rules/rule/
- simplify language in "Note that..." paragraph

 ha-manager.adoc | 30 ++++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)

diff --git a/ha-manager.adoc b/ha-manager.adoc
index d6ac75d..996543f 100644
--- a/ha-manager.adoc
+++ b/ha-manager.adoc
@@ -837,6 +837,24 @@ Two or more HA resources cannot be kept on the same node and separated on
 different nodes at the same time. For more information on these cases, see the
 section about xref:ha_manager_rule_conflicts[rule conflicts and errors] below.
 
+Interactions between Node and Positive Resource Affinity Rules
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
+If there are HA resources in a node affinity rule, which are also part of a
+positive resource affinity rule, then all the other HA resources in the
+positive resource affinity rule inherit the node affinity rule as well.
+
+For example, if the HA resources `vm:100`, `vm:101`, and `vm:102` are in a
+positive resource affinity rule, and `vm:102` is in a node affinity rule, which
+restricts `vm:102` to be only on `node3`, then `vm:100` and `vm:101` are
+restricted to be only on `node3` as well.
+
+Please note that if there are two or more HA resources in a positive resource
+affinity rule and in different node affinity rules, then those rules will cause
+an error and will be disabled as this is currently not supported. For more
+information on these cases, see the section about
+xref:ha_manager_rule_conflicts[rule conflicts and errors] below.
+
 Resource Affinity Rule Properties
 +++++++++++++++++++++++++++++++++
 
@@ -866,8 +884,16 @@ Currently, HA rules are checked for the following feasibility tests:
   resources as a negative HA resources affinity rule. That is, two or more HA
   resources cannot be kept together and separate at the same time.
 
-* A HA resource can only be part of either a HA node affinity rule or HA
-  resource affinity rules, but not both at the same time.
+* An HA resource can only be part of a HA node affinity rule and a HA resource
+  affinity rule at the same time, if the HA node affinity rule has a single
+  priority class.
+
+* The HA resources of a positive HA resource affinity rule can only be part of
+  a single HA node affinity rule at most.
+
+* The HA resources of a negative HA resource affinity rule cannot be restricted
+  to less nodes than HA resources by their node affinity rules. Otherwise, the
+  HA resources do not have enough nodes to be separated.
 
 [[ha_manager_fencing]]
 Fencing

-- 
2.47.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-05 13:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-05  7:58 [pve-devel] [PATCH docs v2 1/4] ha: rules: update about mixed usage of node and resource affinity rules Daniel Kral
2025-08-05  7:58 ` [pve-devel] [PATCH docs v2 2/4] ha: rules: document crs behavior for split positive resource affinity Daniel Kral
2025-08-05  7:58 ` [pve-devel] [PATCH docs v2 3/4] ha: mark ha groups as deprecated and note migration to node affinity rules Daniel Kral
2025-08-05  7:58 ` [pve-devel] [PATCH docs v2 4/4] ha: replace in-text references to ha groups with ha rules Daniel Kral
2025-08-05 13:35 ` [pve-devel] applied: [PATCH docs v2 1/4] ha: rules: update about mixed usage of node and resource affinity rules Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal