all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH ha-manager] resources: Expand max_restart option
@ 2026-03-02 12:28 Maximiliano Sandoval
  2026-03-02 12:39 ` Daniel Kral
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2026-03-02 12:28 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>
---

When writting I initially had "When reached, the service will be attempted to be
relocated" since it was clear it had to be on a "node" but as per HA rules not
all of them might be eligible or some of them might already have reached the
max_restart limit.

 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..66dd7b4 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 service will be attempted to"
+                . " be relocated on 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] resources: Expand max_restart option
  2026-03-02 12:28 [PATCH ha-manager] resources: Expand max_restart option Maximiliano Sandoval
@ 2026-03-02 12:39 ` Daniel Kral
  2026-03-02 13:00 ` Hannes Duerr
  2026-03-03 13:23 ` superseded: " Maximiliano Sandoval
  2 siblings, 0 replies; 5+ messages in thread
From: Daniel Kral @ 2026-03-02 12:39 UTC (permalink / raw)
  To: Maximiliano Sandoval, pve-devel

On Mon Mar 2, 2026 at 1:28 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>
> ---
>
> When writting I initially had "When reached, the service will be attempted to be
> relocated" since it was clear it had to be on a "node" but as per HA rules not
> all of them might be eligible or some of them might already have reached the
> max_restart limit.

Looks good to me! Consider this as:

Reviewed-by: Daniel Kral <d.kral@proxmox.com>

>
>  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..66dd7b4 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 service will be attempted to"
> +                . " be relocated on an eligible node.",
>              type => 'integer',
>              optional => 1,
>              default => 1,




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

* Re: [PATCH ha-manager] resources: Expand max_restart option
  2026-03-02 12:28 [PATCH ha-manager] resources: Expand max_restart option Maximiliano Sandoval
  2026-03-02 12:39 ` Daniel Kral
@ 2026-03-02 13:00 ` Hannes Duerr
  2026-03-02 13:20   ` Maximiliano Sandoval
  2026-03-03 13:23 ` superseded: " Maximiliano Sandoval
  2 siblings, 1 reply; 5+ messages in thread
From: Hannes Duerr @ 2026-03-02 13:00 UTC (permalink / raw)
  To: pve-devel


On 3/2/26 1:28 PM, 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>
> ---
>
> When writting I initially had "When reached, the service will be attempted to be
> relocated" since it was clear it had to be on a "node" but as per HA rules not
> all of them might be eligible or some of them might already have reached the
> max_restart limit.
>
>   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..66dd7b4 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 service will be attempted to"
> +                . " be relocated on an eligible node.",
The phrasing is a bit too complicated, would the following make sense?
`When reached, the HA manager will try to move the service to another 
eligible node.`
>               type => 'integer',
>               optional => 1,
>               default => 1,




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

* Re: [PATCH ha-manager] resources: Expand max_restart option
  2026-03-02 13:00 ` Hannes Duerr
@ 2026-03-02 13:20   ` Maximiliano Sandoval
  0 siblings, 0 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2026-03-02 13:20 UTC (permalink / raw)
  To: Hannes Duerr; +Cc: pve-devel

Hannes Duerr <h.duerr@proxmox.com> writes:

> On 3/2/26 1:28 PM, 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>
>> ---
>>
>> When writting I initially had "When reached, the service will be attempted to be
>> relocated" since it was clear it had to be on a "node" but as per HA rules not
>> all of them might be eligible or some of them might already have reached the
>> max_restart limit.
>>
>>   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..66dd7b4 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 service will be attempted to"
>> +                . " be relocated on an eligible node.",
> The phrasing is a bit too complicated, would the following make sense?
> `When reached, the HA manager will try to move the service to another eligible
> node.`

In such a case I would propose:

When reached, the HA manager will try to relocate the service on an eligible node.

Lets see if anyone has a preference.

>>               type => 'integer',
>>               optional => 1,
>>               default => 1,

-- 
Maximiliano




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

* superseded: [PATCH ha-manager] resources: Expand max_restart option
  2026-03-02 12:28 [PATCH ha-manager] resources: Expand max_restart option Maximiliano Sandoval
  2026-03-02 12:39 ` Daniel Kral
  2026-03-02 13:00 ` Hannes Duerr
@ 2026-03-03 13:23 ` Maximiliano Sandoval
  2 siblings, 0 replies; 5+ messages in thread
From: Maximiliano Sandoval @ 2026-03-03 13:23 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.

Superseded-by: https://lore.proxmox.com/all/20260303132206.222398-1-m.sandoval@proxmox.com/

-- 
Maximiliano




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

end of thread, other threads:[~2026-03-03 13:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-02 12:28 [PATCH ha-manager] resources: Expand max_restart option Maximiliano Sandoval
2026-03-02 12:39 ` Daniel Kral
2026-03-02 13:00 ` Hannes Duerr
2026-03-02 13:20   ` Maximiliano Sandoval
2026-03-03 13:23 ` 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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal