charts icon indicating copy to clipboard operation
charts copied to clipboard

[stable/airflow] configure logs to stdout

Open alistardust opened this issue 7 years ago • 2 comments

This is possibly just a question because maybe I'm reading the docs wrong, or they're not clear, but when I read log section of the docs, it implies to me that it's getting written to /var/log/ on the docker filesystem.

by default (logsPersistence.enabled: false) logs from the web server, scheduler, and Celery workers are written to within the Docker container's filesystem. Therefore, any restart of the pod will wipe the logs. For production purposes, you will likely want to persist the logs externally (e.g. S3), which you have to set up yourself through configuration.

Our intent was to use something along the lines of fluentd/elastic search collector to pull the logs from stdout. I also worry that if it's writing to /var/whatever that the logs will grow and eat up storage devices on the host node, unless I mount a volume for that, which kind of defeats the purpose of fluentd/ES... I also don't see any option, maybe I'm just blind, for rotating the logs. can I specify a size or schedule or something to rotate them, or do I need to set up some sort of cron job to kill pods after they've reached a certain age, like in Logan's Run, maybe call it Sandman. ;)

alistardust avatar Aug 07 '19 21:08 alistardust

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

stale[bot] avatar Sep 06 '19 22:09 stale[bot]

This issue is being automatically closed due to inactivity.

stale[bot] avatar Sep 20 '19 22:09 stale[bot]