Sam-Razavi commented on issue #77055:
URL: https://github.com/apache/airflow/issues/77055#issuecomment-7111130060

   I'd like to take this one. I'm already working on the Elasticsearch part of 
#77056, so I've been in `watcher_log.py` quite a bit.
   
   My plan:
   - Add a `[triggerer]` option for how often the current file is rotated, 
alongside `watcher_log_max_bytes`.
   - Check it from the triggerer's main loop, next to the orphaned-log scan, 
and rotate the current file only when the interval has passed and it has new 
lines. That way a watcher that has gone quiet still gets its last lines 
uploaded, and nothing is uploaded when nothing new was written.
   - Reuse the existing rotated-file upload, so the remote handlers don't need 
changes.
   
   One question: should the interval be off by default (`0`), or on with 
something like 5 minutes? On makes the default safer for pods with local disks, 
but adds an upload per active watcher per interval.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to