#514 log rotation
Opened 2 years ago by kevin. Modified 2 years ago

The fedora odcs instance doesn't seem to rotate logs and they get really big.

on odcs-backend01.iad2.fedoraproject.org:

drwxr-xr-x.  2 odcs-server odcs-server          196 Sep  1 19:52 .
-rw-r--r--.  1 odcs-server odcs-server 151807987970 Sep  1 19:48 worker-1.log.20210901
-rw-r--r--.  1 odcs-server odcs-server      5861054 Sep  1 19:45 worker.log

Would be nice for it to rotate these weekly/daily/something.


I've no idea of this instance. IMO it's better to ask system admin to config logrotate in the server.

Internally we configure logrotate with ansible playbook. It would be possible tomove the configuration to the odcs RPM, and that way Fedora would get it automatically as well, but I'm not sure if the same configuration would work everywhere.

@jkaluza, any thoughts here?

We can of course do this locally... but whats the best practice to restart celery workers to start writing to the new files? I think it would be nice if odcs shipped with a logrotate file... but of course thats up to you.

Login to comment on this ticket.

Metadata