* [PATCH ha-manager v2] resources: Expand max_restart option
@ 2026-03-03 13:22 Maximiliano Sandoval
2026-03-03 16:46 ` Michael Köppl
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2026-03-03 13:22 UTC (permalink / raw)
To: pve-devel
When read next to `max_relocate` it is not clear which happens first
after a service fails to start.
Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---
Differences from v1:
- Incorporate feedback. Namely, "the service will be attempted to be relocated"
was a bit too convoluted.
src/PVE/HA/Resources.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/PVE/HA/Resources.pm b/src/PVE/HA/Resources.pm
index 68d9d16..404f6dc 100644
--- a/src/PVE/HA/Resources.pm
+++ b/src/PVE/HA/Resources.pm
@@ -73,7 +73,8 @@ EODESC
},
max_restart => {
description => "Maximal number of tries to restart the service on"
- . " a node after its start failed.",
+ . " a node after its start failed. When reached, the HA manager will try to"
+ . " relocate the service to an eligible node.",
type => 'integer',
optional => 1,
default => 1,
--
2.47.3
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH ha-manager v2] resources: Expand max_restart option
2026-03-03 13:22 [PATCH ha-manager v2] resources: Expand max_restart option Maximiliano Sandoval
@ 2026-03-03 16:46 ` Michael Köppl
2026-03-03 20:09 ` Thomas Lamprecht
2026-03-04 8:36 ` superseded: " Maximiliano Sandoval
2 siblings, 0 replies; 5+ messages in thread
From: Michael Köppl @ 2026-03-03 16:46 UTC (permalink / raw)
To: Maximiliano Sandoval, pve-devel
I prefer this one over v1 because I think it's more comprehensible. lgtm
Reviewed-by: Michael Köppl <m.koeppl@proxmox.com>
On Tue Mar 3, 2026 at 2:22 PM CET, Maximiliano Sandoval wrote:
> When read next to `max_relocate` it is not clear which happens first
> after a service fails to start.
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
>
> ---
>
> Differences from v1:
> - Incorporate feedback. Namely, "the service will be attempted to be relocated"
> was a bit too convoluted.
>
> src/PVE/HA/Resources.pm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/PVE/HA/Resources.pm b/src/PVE/HA/Resources.pm
> index 68d9d16..404f6dc 100644
> --- a/src/PVE/HA/Resources.pm
> +++ b/src/PVE/HA/Resources.pm
> @@ -73,7 +73,8 @@ EODESC
> },
> max_restart => {
> description => "Maximal number of tries to restart the service on"
> - . " a node after its start failed.",
> + . " a node after its start failed. When reached, the HA manager will try to"
> + . " relocate the service to an eligible node.",
> type => 'integer',
> optional => 1,
> default => 1,
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH ha-manager v2] resources: Expand max_restart option
2026-03-03 13:22 [PATCH ha-manager v2] resources: Expand max_restart option Maximiliano Sandoval
2026-03-03 16:46 ` Michael Köppl
@ 2026-03-03 20:09 ` Thomas Lamprecht
2026-03-04 7:58 ` Daniel Kral
2026-03-04 8:36 ` superseded: " Maximiliano Sandoval
2 siblings, 1 reply; 5+ messages in thread
From: Thomas Lamprecht @ 2026-03-03 20:09 UTC (permalink / raw)
To: Maximiliano Sandoval, pve-devel
Am 03.03.26 um 14:22 schrieb Maximiliano Sandoval:
> When read next to `max_relocate` it is not clear which happens first
> after a service fails to start.
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
>
> ---
>
> Differences from v1:
> - Incorporate feedback. Namely, "the service will be attempted to be relocated"
> was a bit too convoluted.
>
> src/PVE/HA/Resources.pm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/PVE/HA/Resources.pm b/src/PVE/HA/Resources.pm
> index 68d9d16..404f6dc 100644
> --- a/src/PVE/HA/Resources.pm
> +++ b/src/PVE/HA/Resources.pm
> @@ -73,7 +73,8 @@ EODESC
> },
> max_restart => {
> description => "Maximal number of tries to restart the service on"
> - . " a node after its start failed.",
> + . " a node after its start failed. When reached, the HA manager will try to"
> + . " relocate the service to an eligible node.",
IIRC we decided to try using the term "resources" for the VM/CTs managed by HA
and "services" more for the daemons for new docs/description (and Someday™ clean
up the existing usage). Can be easily fixed up on applying, just wanted to ensure
I did not misremember (CCing also Dano for that)
> type => 'integer',
> optional => 1,
> default => 1,
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH ha-manager v2] resources: Expand max_restart option
2026-03-03 20:09 ` Thomas Lamprecht
@ 2026-03-04 7:58 ` Daniel Kral
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Kral @ 2026-03-04 7:58 UTC (permalink / raw)
To: Thomas Lamprecht, Maximiliano Sandoval, pve-devel
On Tue Mar 3, 2026 at 9:09 PM CET, Thomas Lamprecht wrote:
> Am 03.03.26 um 14:22 schrieb Maximiliano Sandoval:
>> When read next to `max_relocate` it is not clear which happens first
>> after a service fails to start.
>>
>> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
>>
>> ---
>>
>> Differences from v1:
>> - Incorporate feedback. Namely, "the service will be attempted to be relocated"
>> was a bit too convoluted.
>>
>> src/PVE/HA/Resources.pm | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/src/PVE/HA/Resources.pm b/src/PVE/HA/Resources.pm
>> index 68d9d16..404f6dc 100644
>> --- a/src/PVE/HA/Resources.pm
>> +++ b/src/PVE/HA/Resources.pm
>> @@ -73,7 +73,8 @@ EODESC
>> },
>> max_restart => {
>> description => "Maximal number of tries to restart the service on"
>> - . " a node after its start failed.",
>> + . " a node after its start failed. When reached, the HA manager will try to"
>> + . " relocate the service to an eligible node.",
>
>
> IIRC we decided to try using the term "resources" for the VM/CTs managed by HA
> and "services" more for the daemons for new docs/description (and Someday™ clean
> up the existing usage). Can be easily fixed up on applying, just wanted to ensure
> I did not misremember (CCing also Dano for that)
+1, in descriptions I'd also tend to go for "HA resource" to make sure
the term differentiates itself from "cluster resource" or other kinds of
resources, where it makes sense and doesn't bloat the message length too
much.
s/service/HA resource/ should be done for max_relocate here as well,
maybe in a patch before that.
>
>> type => 'integer',
>> optional => 1,
>> default => 1,
^ permalink raw reply [flat|nested] 5+ messages in thread
* superseded: [PATCH ha-manager v2] resources: Expand max_restart option
2026-03-03 13:22 [PATCH ha-manager v2] resources: Expand max_restart option Maximiliano Sandoval
2026-03-03 16:46 ` Michael Köppl
2026-03-03 20:09 ` Thomas Lamprecht
@ 2026-03-04 8:36 ` Maximiliano Sandoval
2 siblings, 0 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2026-03-04 8:36 UTC (permalink / raw)
To: pve-devel
Maximiliano Sandoval <m.sandoval@proxmox.com> writes:
> When read next to `max_relocate` it is not clear which happens first
> after a service fails to start.
>
> Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
>
> ---
>
> Differences from v1:
> - Incorporate feedback. Namely, "the service will be attempted to be relocated"
> was a bit too convoluted.
>
> src/PVE/HA/Resources.pm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/PVE/HA/Resources.pm b/src/PVE/HA/Resources.pm
> index 68d9d16..404f6dc 100644
> --- a/src/PVE/HA/Resources.pm
> +++ b/src/PVE/HA/Resources.pm
> @@ -73,7 +73,8 @@ EODESC
> },
> max_restart => {
> description => "Maximal number of tries to restart the service on"
> - . " a node after its start failed.",
> + . " a node after its start failed. When reached, the HA manager will try to"
> + . " relocate the service to an eligible node.",
> type => 'integer',
> optional => 1,
> default => 1,
Superseded-by: https://lore.proxmox.com/all/20260304083559.75293-1-m.sandoval@proxmox.com/
--
Maximiliano
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-03-04 8:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-03 13:22 [PATCH ha-manager v2] resources: Expand max_restart option Maximiliano Sandoval
2026-03-03 16:46 ` Michael Köppl
2026-03-03 20:09 ` Thomas Lamprecht
2026-03-04 7:58 ` Daniel Kral
2026-03-04 8:36 ` superseded: " Maximiliano Sandoval
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.