public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH datacenter-manager 0/4] implement back-off mechanism for
@ 2026-05-29 13:30 Dominik Csapak
  2026-05-29 13:30 ` [RFC PATCH datacenter-manager 1/4] server: connection: multi client: use correct client error for retrying Dominik Csapak
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dominik Csapak @ 2026-05-29 13:30 UTC (permalink / raw)
  To: pdm-devel

When a remote is not reachable (e.g. network outage, crashes, etc), PDM
tries to connect on every attempt with a timeout. This leads to heavily
delayed api calls in the PDM UI. To counter that, this series implments
a basic back-off mechanism that increases the time between actual api
calls in an exponential way (up to a maximum).

Advantage are less failed api calls, but the downside is that it now
takes a while potentially to mark a remote as reachable again.

For details on ideas for that see the notes in patch 2/4

Note: patch 1/4 is related, but it's a fix on its own (see the notes
there for further details.)

Dominik Csapak (4):
  server: connection: multi client: use correct client error for
    retrying
  server: remote cache: prepare for back-off mechanism
  server: connection: multi-client: use back-off state from remote cache
  server: pbs client: rework to use the back-off mechanism from remote
    cache

 server/src/connection.rs       |  42 +++++++--
 server/src/pbs_client.rs       | 167 +++++++++++++++++++++++++--------
 server/src/remote_cache/mod.rs | 139 +++++++++++++++++++++++++++
 3 files changed, 300 insertions(+), 48 deletions(-)

-- 
2.47.3





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

end of thread, other threads:[~2026-05-29 23:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-29 13:30 [PATCH datacenter-manager 0/4] implement back-off mechanism for Dominik Csapak
2026-05-29 13:30 ` [RFC PATCH datacenter-manager 1/4] server: connection: multi client: use correct client error for retrying Dominik Csapak
2026-05-29 23:25   ` Thomas Lamprecht
2026-05-29 13:30 ` [PATCH datacenter-manager 2/4] server: remote cache: prepare for back-off mechanism Dominik Csapak
2026-05-29 23:40   ` Thomas Lamprecht
2026-05-29 13:30 ` [PATCH datacenter-manager 3/4] server: connection: multi-client: use back-off state from remote cache Dominik Csapak
2026-05-29 13:30 ` [PATCH datacenter-manager 4/4] server: pbs client: rework to use the back-off mechanism " Dominik Csapak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal