From: Dominik Csapak <d.csapak@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH datacenter-manager 0/4] implement back-off mechanism for
Date: Fri, 29 May 2026 15:30:16 +0200 [thread overview]
Message-ID: <20260529133026.3149896-1-d.csapak@proxmox.com> (raw)
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
next reply other threads:[~2026-05-29 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 13:30 Dominik Csapak [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260529133026.3149896-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=pdm-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox