cloudnative-pg / cloudnative-pg/plugin-barman-cloud
GCS Backup times out at 120s
- 主要言語
- Go
- スター
- 191
- フォーク
- 72
- 平均マージ
- 2日 21時間
- マージ済み PR(30日)
- 21
説明
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