[openstack-dev] [kolla][logging] log rotation

Eric LEMOINE elemoine at mirantis.com
Fri Mar 4 13:26:51 UTC 2016


Hi Kolla devs

So with the Heka work services write their logs into files (in the
"kolla_logs" volume). This means that we need log rotation. This was
mentioned in the "logging-with-heka" spec [*].

I've just created a change request [**] that adds a "cron" Dockerfile
and Ansible tasks/plays to deploy a "cron" container on every node.
I've opened this mainly as a base for discussion.

So the "cron" container runs the crond daemon, which runs logrotate
daily for rotating the log files of kolla services. In the future the
"cron" container could be used for other cron-type tasks.

Thoughts? Feedback?

Thanks.

[*] <https://github.com/openstack/kolla/blob/master/specs/logging-with-heka.rst#log-rotation>
[**] <https://review.openstack.org/#/c/288432/>



More information about the OpenStack-dev mailing list