public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox{,-backup} v2 0/3] fix #6373: HTTP level keepalive for http2 backup reader/writer connection
@ 2026-05-11 13:46 Christian Ebner
  2026-05-11 13:46 ` [PATCH proxmox v2 1/3] rest-server: add request logfilter by method and path in h2 service Christian Ebner
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christian Ebner @ 2026-05-11 13:46 UTC (permalink / raw)
  To: pbs-devel

Patches implement a HTTP level keepalive mechanism to avoid of active
but idle http2 connections established by the backup reader or writer
being dropped by reverse proxies.
Regular heartbeat requests are send to the Proxmox Backup Server, the
frequency based on a given timeout. Heartbeat traffic is only send if
no other requests have been send during the timeout period. The
timeout given in seconds is read from the respective environment
variable, PBS_READER_HEARTBEAT_TIMEOUT for readers and
PBS_WRITER_HEARTBEAT_TIMEOUT for writers. If not set, no heartbeat
traffic is being send.

Since each HTTP request is being logged to the task log for http2
connections, implement a filtering logic allowing to exclude these
request logs to avoid log flodding.

Example configurations for testing can be found on the individual
patch fixing the issue.

Changes since RFC version (thanks @Fabian for comments and suggestions):
- Implement heartbeat traffic also for backup writer, not just reader
- Refactor and combine common logic for both variants
- Fix request method to be get() instead of download()
- Threat env variable parsing errors as errors instead of ignoring them

Link to the bugtracker issue:
https://bugzilla.proxmox.com/show_bug.cgi?id=6373


proxmox:

Christian Ebner (1):
  rest-server: add request logfilter by method and path in h2 service

 proxmox-rest-server/src/h2service.rs | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)


proxmox-backup:

Christian Ebner (2):
  api: add heartbeat endpoint for backup reader/writer http/2 clients
  fix #6373: HTTP level client heartbeat for proxy connection keepalive

 pbs-client/src/backup_reader.rs |  67 ++++++++++++++--
 pbs-client/src/backup_writer.rs | 131 +++++++++++++++++++++++++++++---
 pbs-client/src/lib.rs           |  25 ++++++
 src/api2/backup/mod.rs          |  13 +++-
 src/api2/helpers.rs             |  14 +++-
 src/api2/reader/mod.rs          |  13 +++-
 6 files changed, 238 insertions(+), 25 deletions(-)


Summary over all repositories:
  7 files changed, 254 insertions(+), 27 deletions(-)

-- 
Generated by murpp 0.11.0




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

end of thread, other threads:[~2026-05-11 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-11 13:46 [PATCH proxmox{,-backup} v2 0/3] fix #6373: HTTP level keepalive for http2 backup reader/writer connection Christian Ebner
2026-05-11 13:46 ` [PATCH proxmox v2 1/3] rest-server: add request logfilter by method and path in h2 service Christian Ebner
2026-05-11 13:46 ` [PATCH proxmox-backup v2 2/3] api: add heartbeat endpoint for backup reader/writer http/2 clients Christian Ebner
2026-05-11 13:46 ` [PATCH proxmox-backup v2 3/3] fix #6373: HTTP level client heartbeat for proxy connection keepalive Christian Ebner

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