From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <pve-devel-bounces@lists.proxmox.com> Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 24CFC1FF164 for <inbox@lore.proxmox.com>; Fri, 20 Jun 2025 16:32:54 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0CED7DE46; Fri, 20 Jun 2025 16:32:19 +0200 (CEST) From: Daniel Kral <d.kral@proxmox.com> To: pve-devel@lists.proxmox.com Date: Fri, 20 Jun 2025 16:31:41 +0200 Message-Id: <20250620143148.218469-34-d.kral@proxmox.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250620143148.218469-1-d.kral@proxmox.com> References: <20250620143148.218469-1-d.kral@proxmox.com> MIME-Version: 1.0 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.011 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH docs v2 3/5] update static files to include use-location-rules feature flag X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion <pve-devel.lists.proxmox.com> List-Unsubscribe: <https://lists.proxmox.com/cgi-bin/mailman/options/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=unsubscribe> List-Archive: <http://lists.proxmox.com/pipermail/pve-devel/> List-Post: <mailto:pve-devel@lists.proxmox.com> List-Help: <mailto:pve-devel-request@lists.proxmox.com?subject=help> List-Subscribe: <https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel>, <mailto:pve-devel-request@lists.proxmox.com?subject=subscribe> Reply-To: Proxmox VE development discussion <pve-devel@lists.proxmox.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" <pve-devel-bounces@lists.proxmox.com> Signed-off-by: Daniel Kral <d.kral@proxmox.com> --- This patch is more of a show-case how the static files changed. changes since v1: - NEW! api-viewer/apidata.js | 9 ++++++++- datacenter.cfg.5-opts.adoc | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/api-viewer/apidata.js b/api-viewer/apidata.js index 9f0f28a..c52afc8 100644 --- a/api-viewer/apidata.js +++ b/api-viewer/apidata.js @@ -14800,13 +14800,20 @@ const apiSchema = [ "conditional", "migrate" ], + "optional" : 1, "type" : "string", "verbose_description" : "Describes the policy for handling HA services on poweroff or reboot of a node. Freeze will always freeze services which are still located on the node on shutdown, those services won't be recovered by the HA manager. Failover will not mark the services as frozen and thus the services will get recovered to other nodes, if the shutdown node does not come up again quickly (< 1min). 'conditional' chooses automatically depending on the type of shutdown, i.e., on a reboot the service will be frozen but on a poweroff the service will stay as is, and thus get recovered after about 2 minutes. Migrate will try to move all running services to another node when a reboot or shutdown was triggered. The poweroff process will only continue once no running services are located on the node anymore. If the node comes up again, the service will be moved back to the previously powered-off node, at least if no other migration, reloaction or recover y took place." + }, + "use-location-rules" : { + "default" : 0, + "description" : "Whether HA Location rules should be used instead of HA groups.", + "optional" : 1, + "type" : "boolean" } }, "optional" : 1, "type" : "string", - "typetext" : "shutdown_policy=<enum>" + "typetext" : "[shutdown_policy=<enum>] [,use-location-rules=<1|0>]" }, "http_proxy" : { "description" : "Specify external http proxy which is used for downloads (example: 'http://username:password@host:port/')", diff --git a/datacenter.cfg.5-opts.adoc b/datacenter.cfg.5-opts.adoc index 7a42b12..8001870 100644 --- a/datacenter.cfg.5-opts.adoc +++ b/datacenter.cfg.5-opts.adoc @@ -56,7 +56,7 @@ Set the fencing mode of the HA cluster. Hardware mode needs a valid configuratio + WARNING: 'hardware' and 'both' are EXPERIMENTAL & WIP -`ha`: `shutdown_policy=<enum>` :: +`ha`: `[shutdown_policy=<enum>] [,use-location-rules=<1|0>]` :: Cluster wide HA settings. @@ -64,6 +64,10 @@ Cluster wide HA settings. Describes the policy for handling HA services on poweroff or reboot of a node. Freeze will always freeze services which are still located on the node on shutdown, those services won't be recovered by the HA manager. Failover will not mark the services as frozen and thus the services will get recovered to other nodes, if the shutdown node does not come up again quickly (< 1min). 'conditional' chooses automatically depending on the type of shutdown, i.e., on a reboot the service will be frozen but on a poweroff the service will stay as is, and thus get recovered after about 2 minutes. Migrate will try to move all running services to another node when a reboot or shutdown was triggered. The poweroff process will only continue once no running services are located on the node anymore. If the node comes up again, the service will be moved back to the previously powered-off node, at least if no other migration, reloaction or recovery took place. +`use-location-rules`=`<boolean>` ('default =' `0`);; + +Whether HA Location rules should be used instead of HA groups. + `http_proxy`: `http://.*` :: Specify external http proxy which is used for downloads (example: 'http://username:password@host:port/') -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel