cloudnative-pg / cloudnative-pg/plugin-barman-cloud
[Feature request] Enhanced information related to WAL archiving
- Ngôn ngữ chính
- Go
- Star
- 192
- Fork
- 75
- Merge trung bình
- 1 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 18
Mô tả
The new `ObjectStore` CRD status that the barman cloud plugin introduces has taken over some of the backup-related information from the `Cluster` spec:
* the first recoverability point
* the last successful backup
* the last failed backup
They are all set together in this struct called RecoverabilityWindow, but in truth, for a continuous backup, these are not exactly the limits of the recoverability window, because on top of the last successful backup there can be wal files that essentially extend it.
Therefore i think this information would be more valuable if it also shows information about the last archived WAL file (or the last archived WAL file that was streamed up into the object store being modeled by this CRD).
I noticed in the last release this PR https://github.com/cloudnative-pg/cloudnative-pg/pull/8780 shows more complete information about the WAL, i think including that in the `ObjectStore` status can be a good addition. It would allow more programatic access to this data instead of needing to use the `kubectl cnpg status` command separately or look into the prometheus metrics.
This is of course assuming this plugin is also used for WAL archiving, but as far as i’ve seen it is the only recommended option.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách xem xét trạng thái CRD ObjectStore và các trường RecoverabilityWindow được mô tả trong issue, sau đó so sánh thông tin WAL được thêm trong PR #8780. Kiểm tra cách kubectl cnpg status và các metric Prometheus hiện lấy dữ liệu này. Hoàn thành khi trạng thái ObjectStore cung cấp thông tin WAL được lưu trữ gần nhất liên quan để truy cập bằng chương trình.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- go, kubernetes, postgresql
- Lĩnh vực
- backend-api-design, databases
- Loại issue
- Tính năng
- Độ 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
- 48/100