Bug #3813
closedradosgw doesn't have a logrotate script
0%
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.
Updated by Faidon Liambotis over 11 years ago
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.
Updated by Sage Weil over 11 years ago
- 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..?
Updated by Sage Weil over 11 years ago
Let's go with /var/log/radosgw and a separate logrotate script. Simpler!
Updated by Yehuda Sadeh about 11 years ago
- Status changed from 12 to Resolved
Fixed, commit:c8eace6ff0bbb38bf317b9db2ffba57c3d128693
Updated by John Spray over 6 years ago
- Project changed from Ceph to rgw
- Category deleted (
22)
Bulk reassign of radosgw category to RGW project.