LowellObservatory / NightShift

Collection of sub-modules used in the NightWatch (and other Night*) project
Mozilla Public License 2.0
1 stars 1 forks source link

bokeh log doesn't rotate #13

Closed astrobokonon closed 2 years ago

astrobokonon commented 4 years ago

Not sure why I didn't do this as it looks like I'm using my standard ligmos logger? Hopefully an easy fix?

astrobokonon commented 4 years ago

Looks like I left myself a clue at least

https://github.com/LowellObservatory/NightShift/blob/f159fbe4b5310c048b4e149197ed230618a87b07/server_bokeh_dctplots.py#L191-L197

astrobokonon commented 4 years ago

I think I mostly fixed this; the logs are being duplicated to STDOUT as well as the file, but at least the file rotates now. The previous one broke sometime around October 2019, and was approximately 2 gigabytes in size. Whoops. At least that's fixed now.

astrobokonon commented 4 years ago

Well, it rotates, but docker logs -f and the actual logfile don't contain the same things; it looks like the ones instigated by bokeh.server get passed through, but the diagnostic ones in the various periodic callbacks don't seem to be passing through. Needs a fix.

astrobokonon commented 2 years ago

Fixed it instead at the docker level by implementing system-wide container log rotation (via /etc/docker/daemon.json). Closing.