cloudnative-pg / cloudnative-pg/plugin-barman-cloud
GCS Backup times out at 120s
- Ngôn ngữ chính
- Go
- Star
- 191
- Fork
- 72
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 18
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu từ đường dẫn tải lên Google Cloud Storage của lệnh barman-cloud-backup và truy vết nơi timeout 120 giây được thiết lập. So sánh giá trị đó với --read-timeout và xác minh cách một lần tải lên chậm được xử lý. Hoàn thành khi timeout đã cấu hình kiểm soát thao tác tải lên và hành vi timeout được báo cáo được kiểm thử bằng các bài kiểm thử phù hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- google-cloud, kubernetes, postgresql
- Lĩnh vực
- cloud, databases, devops
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100