public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox{, -backup} 0/5] dynamically calculate request timeout for put object calls
Date: Wed, 20 Aug 2025 11:58:02 +0200	[thread overview]
Message-ID: <20250820095807.172722-1-c.ebner@proxmox.com> (raw)

Currently, the s3 client sets a default timeout value of 60 seconds
for each request send to the s3 api, independent of the request type.

Put request uploading data can however take considerably more time,
depending on the payload size and available upload bandwidth. This
can lead to upload requests failing as reported in the community
forum [0,1].

To partially fix this, calculate the request timeout for put object
api calls based on the content size to be uploaded. Other issues due
to network congestion might still arise, but might be circumvented
via traffic shaping.

To check the behaviour, the following `tc` filtering has been performed
to limit the bandwidth to 10Mbit on the outgoing network interface ens18:
```
tc qdisc add dev ens18 root handle 1: htb
tc class add dev ens18 parent 1: classid 1:1 htb rate 10Mbit
tc filter add dev ens18 protocol ip parent 1: prio 1 u32 match ip dst 0/0 flowid 1:1
```

The outgoing traffic has been monitored via `atop`.

This is intended as stop gap until a more advance shared request and
rate limiter is implemented for the s3 client.

[0] https://forum.proxmox.com/threads/169620/
[1] https://forum.proxmox.com/threads/169432/

proxmox:

Christian Ebner (3):
  s3-client: allow setting custom timeout when sending requests
  s3-client: dynamically calculate put request timeout based on payload
  s3-client: expose default timeout for s3 api requests

 proxmox-s3-client/examples/s3_client.rs |  3 +-
 proxmox-s3-client/src/client.rs         | 51 +++++++++++++++++--------
 proxmox-s3-client/src/lib.rs            |  2 +-
 3 files changed, 39 insertions(+), 17 deletions(-)


proxmox-backup:

Christian Ebner (2):
  s3: pass now optional default request timeout for s3 api calls
  api: format error to show full context for failed chunk uploads

 src/api2/admin/s3.rs            | 9 +++++++--
 src/api2/backup/upload_chunk.rs | 4 ++--
 src/api2/config/datastore.rs    | 3 ++-
 3 files changed, 11 insertions(+), 5 deletions(-)


Summary over all repositories:
  6 files changed, 50 insertions(+), 22 deletions(-)

-- 
Generated by git-murpp 0.8.1


_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel


             reply	other threads:[~2025-08-20  9:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-20  9:58 Christian Ebner [this message]
2025-08-20  9:58 ` [pbs-devel] [PATCH proxmox 1/3] s3-client: allow setting custom timeout when sending requests Christian Ebner
2025-08-20  9:58 ` [pbs-devel] [PATCH proxmox 2/3] s3-client: dynamically calculate put request timeout based on payload Christian Ebner
2025-08-20  9:58 ` [pbs-devel] [PATCH proxmox 3/3] s3-client: expose default timeout for s3 api requests Christian Ebner
2025-08-20  9:58 ` [pbs-devel] [PATCH proxmox-backup 1/2] s3: pass now optional default request timeout for s3 api calls Christian Ebner
2025-08-20  9:58 ` [pbs-devel] [PATCH proxmox-backup 2/2] api: format error to show full context for failed chunk uploads Christian Ebner
2025-08-25  9:35 ` [pbs-devel] applied-series: [PATCH proxmox{, -backup} 0/5] dynamically calculate request timeout for put object calls Wolfgang Bumiller

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=20250820095807.172722-1-c.ebner@proxmox.com \
    --to=c.ebner@proxmox.com \
    --cc=pbs-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
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal