canonical / canonical/postgresql-operator

No logging or compaction enabled for logs in snap internal /var/log/ folders

Đang mở
#653 6 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
20
Fork
36
Merge trung bình
4 ngày 15 giờ
Pull request đã merge (30 ngày)
30

Mô tả

## Steps to reproduce

1. Setup charmed-postgresql, connect an application to generate data. Deploying the default landscape-scalable bundle would be a good way to start generating logs.

## Expected behavior
I expect the internal /var/log/ folder to start compacting old logs and eventually rotating them. I would like charm or snap level config knobs to alter this behavior (ie rotate logs after x days, keep logging directory under x GB, etc).

## Actual behavior

files just build up in var/log/.
![image](https://github.com/user-attachments/assets/5ed4de6b-cf36-4707-8119-1d1b80364cfe)

![image](https://github.com/user-attachments/assets/831de234-aff6-4113-adf2-1cbcc13316b0)

## Versions

Operating system: 22.04.5 LTS

Juju CLI: 3.5.4

Juju agent: 3.5.0

Charm revision: 429

LXD: 5.0.3

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.