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

GCS Backup times out at 120s

Open
#771 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
191
Forks
72
Avg merge
2d 21h
Merged PRs (30d)
21

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.