mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-06-15 19:57:33 +00:00
ha-manager.adoc: improve group configuration section
This commit is contained in:
parent
8536358840
commit
206c2476bf
18
gen-ha-groups-opts.pl
Executable file
18
gen-ha-groups-opts.pl
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
use lib '.';
|
||||||
|
use strict;
|
||||||
|
use warnings;
|
||||||
|
use PVE::RESTHandler;
|
||||||
|
|
||||||
|
use Data::Dumper;
|
||||||
|
|
||||||
|
use PVE::HA::Groups;
|
||||||
|
|
||||||
|
|
||||||
|
my $private = PVE::HA::Groups::private();
|
||||||
|
my $properies = $private->{propertyList};
|
||||||
|
delete $properies->{type};
|
||||||
|
delete $properies->{group};
|
||||||
|
|
||||||
|
print PVE::RESTHandler::dump_properties($properies);
|
@ -282,6 +282,10 @@ All HA configuration files are within `/etc/pve/ha/`, so they get
|
|||||||
automatically distributed to the cluster nodes, and all nodes share
|
automatically distributed to the cluster nodes, and all nodes share
|
||||||
the same HA configuration.
|
the same HA configuration.
|
||||||
|
|
||||||
|
|
||||||
|
Resources
|
||||||
|
~~~~~~~~~
|
||||||
|
|
||||||
The resource configuration file `/etc/pve/ha/resources.cfg` stores
|
The resource configuration file `/etc/pve/ha/resources.cfg` stores
|
||||||
the list of resources managed by `ha-manager`. A resource configuration
|
the list of resources managed by `ha-manager`. A resource configuration
|
||||||
inside that list look like this:
|
inside that list look like this:
|
||||||
@ -298,11 +302,22 @@ contain additional properties:
|
|||||||
include::ha-resources-opts.adoc[]
|
include::ha-resources-opts.adoc[]
|
||||||
|
|
||||||
|
|
||||||
|
Groups
|
||||||
|
~~~~~~
|
||||||
|
|
||||||
The HA group configuration file `/etc/pve/ha/groups.cfg` is used to
|
The HA group configuration file `/etc/pve/ha/groups.cfg` is used to
|
||||||
define groups of cluster nodes. A resource can be restricted to run
|
define groups of cluster nodes. A resource can be restricted to run
|
||||||
only on the members of such group.
|
only on the members of such group. A group configuration look like
|
||||||
|
this:
|
||||||
|
|
||||||
|
----
|
||||||
|
group: <group>
|
||||||
|
nodes <node_list>
|
||||||
|
<property> <value>
|
||||||
|
...
|
||||||
|
----
|
||||||
|
|
||||||
|
include::ha-groups-opts.adoc[]
|
||||||
|
|
||||||
|
|
||||||
Node Power Status
|
Node Power Status
|
||||||
|
Loading…
Reference in New Issue
Block a user