cloudnative-pg / cloudnative-pg/plugin-barman-cloud
GCS Backup times out at 120s
- 主要语言
- Go
- 星标
- 192
- 派生
- 75
- 平均合并
- 1 天 16 小时
- 30 天内合并 PR
- 18
描述
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.
贡献指南
调研方向
从 barman-cloud-backup 命令的 Google Cloud Storage 上传路径开始,追踪 120 秒超时在哪里设置。将该值与 --read-timeout 进行比较,并验证慢速上传是如何处理的。完成的标准是,已配置的超时控制上传操作,并且所报告的超时行为有适当的测试覆盖。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- google-cloud, kubernetes, postgresql
- 领域
- cloud, databases, devops
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100