Bug #3813
closed
radosgw doesn't have a logrotate script
Added by Faidon Liambotis over 11 years ago.
Updated over 6 years ago.
Description
Currently there's no logrotate configuration for radosgw at all. Even if one sets "log file" to /var/log/ceph/something.log and installs "ceph" (not a strict dependency), the ceph logrotate post-rotate script doesn't take care of reloading radosgw as to reopen its log files, which keeps holding the fd to the deleted file open quickly filling up the disk.
Note that the official docs suggest to put "log file = /var/log/ceph/radosgw.log" too. If "ceph" isn't installed, this just fills the logs. If it is, logs are rotated, but kept open, resulting in radosgw writing to a deleted file until the disks fills up (and quickly in my case).
A separate logrotate.d could interfere with ceph's logrotate config. Either /etc/logrotate.d/ceph should get "radosgw" on its for loop and perl -ne regexp there, or /etc/logrotate.d/radosgw should be shipped and documentation updated to suggest using /var/log/radosgw/radosgw.log instead.
- Status changed from New to 12
- Assignee set to Yehuda Sadeh
- Priority changed from Normal to Urgent
Given that radosgw gets installed without ceph, it seems like teh viable optoins are putting the logrotate cofnig in a mutual dependency, or using /var/log/radosgw..?
- Priority changed from Urgent to High
Let's go with /var/log/radosgw and a separate logrotate script. Simpler!
- Status changed from 12 to Resolved
Fixed, commit:c8eace6ff0bbb38bf317b9db2ffba57c3d128693
- Project changed from Ceph to rgw
- Category deleted (
22)
Bulk reassign of radosgw category to RGW project.
Also available in: Atom
PDF