5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-10-27 15:33:11 +03:00
Files
pve-docs/ha-rules-node-affinity-opts.adoc
Daniel Kral 78121711f0 ha: add documentation about ha rules and ha node affinity rules
Add documentation about HA Node Affinity rules and general documentation
what HA rules are for in a format that is extendable with other HA rule
types in the future.

Signed-off-by: Daniel Kral <d.kral@proxmox.com>
Link: https://lore.proxmox.com/20250730175957.386674-25-d.kral@proxmox.com
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-07-31 08:48:10 +02:00

19 lines
1.0 KiB
Plaintext

`nodes`: `<node>[:<pri>]{,<node>[:<pri>]}*` ::
List of cluster node members, where a priority can be given to each node. A resource bound to a group will run on the available nodes with the highest priority. If there are more nodes in the highest priority class, the services will get distributed to those nodes. The priorities have a relative meaning only. The higher the number, the higher the priority.
`resources`: `<type>:<name>{,<type>:<name>}*` ::
List of HA resource IDs. This consists of a list of resource types followed by a resource specific name separated with a colon (example: vm:100,ct:101).
`strict`: `<boolean>` ('default =' `0`)::
Describes whether the node affinity rule is strict or non-strict.
+
A non-strict node affinity rule makes resources prefer to be on the defined nodes.
If none of the defined nodes are available, the resource may run on any other node.
+
A strict node affinity rule makes resources be restricted to the defined nodes. If
none of the defined nodes are available, the resource will be stopped.