Closed felixbuenemann closed 7 years ago
Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it.
@jchauncey is a potential reviewer of this pull request based on my analysis of git blame
information. Thanks @felixbuenemann!
I have done the following steps to test this change:
Jenkins, add to whitelist.
This changes the tail mode for container logs to include the beginning of the file instead of simply tailing it.
This is required, because there is a delay of some seconds between container startup and fluentd picking up the log file and starting to tail it.
The source is already using a
pos_file /var/log/containers.log.pos
that is persisted on the host filesystem, so even if fluentd crashes or is restarted during upgrades logs are not duplicated.I have tested this on my clusted using
quay.io/felixbuenemann/fluentd:git-7fb4691
and it fixes issues were log messages generated at container startup are missing.Fixes #76.