Open o-otte opened 2 weeks ago
Added logrotate for nodepool and zuul log volumes and limited log files on instances. This has been applied to the dev install playbook and tested.
The change didn't work as expected within docker, so I have updated the docker-compose file to limit the files in that. Manually adjusted the same on prod, but it will not be affected until a restart is carried out, and added logrotate for the local Zuul and Nodepool logs on prod.
If you changed the log rotation behaviour in the Docker configuration I think the container has to be re-created.
https://docs.docker.com/config/containers/logging/configure/:
Restart Docker for the changes to take effect for newly created containers. Existing containers don't use the new logging configuration automatically.
This is on prod and there is no maintenance planned for it, so not restarting them. The issue is low impact, for now, and the main problem has been addressed with the logrotate on the VM's filesystem.
Lately, it happened that Zuul filled the VM Discs with a lot of Logs, resulting in a malfunctioning instance.
Hence, logs should be rotated.
Definition of Ready:
Definition of Done:
/var/log/zuul
and/var/log/nodepool
are handled with logrotate