cloudnative-pg / cloudnative-pg/plugin-barman-cloud

GCS Backup times out at 120s

Offen
#771 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Go
Sterne
191
Forks
72
Ø Merge
2 T. 21 Std.
Gemergte PRs (30 T.)
21

Beschreibung

We have kubernetes clusters at remote locations that are connected to the cloud via slow connections. The database size is also small (approx 40MB compressed). However the upload to GCS buckets is timing out. Despite setting the --read-timeout to 600, it times out after 120s.

The command used is as follows
`barman-cloud-backup --user postgres --name --gzip --read-timeout 600 --cloud-provider google-cloud-storage gs:// `

The error is as follows
ERROR:
ERROR: Timeout of 120.0s exceeded, last exception: ('Connection aborted.', timeout('The write operation timed out'))
ERROR: Upload error: Timeout of 120.0s exceeded, last exception: ('Connection aborted.', timeout('The write operation timed out')) (worker 0)

It looks like the timeout is hard coded and cannot be changed. I have also tried setting the read-timeout to 0 without any success.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne beim Google-Cloud-Storage-Upload-Pfad des Befehls barman-cloud-backup und verfolge, wo das 120-Sekunden-Timeout festgelegt wird. Vergleiche diesen Wert mit --read-timeout und überprüfe, wie ein langsamer Upload behandelt wird. Als erledigt gilt die Aufgabe, wenn das konfigurierte Timeout den Upload-Vorgang steuert und das berichtete Timeout-Verhalten durch geeignete Tests abgedeckt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
google-cloud, kubernetes, postgresql
Bereich
cloud, databases, devops
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.