datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.92k stars 448 forks source link

Docker logging causing undue wear of SD Card #87

Closed TheOriginalMrWolf closed 5 years ago

TheOriginalMrWolf commented 5 years ago

Hi,

Just worked out that Docker is doing a lot of logging to your SD card by default as well. This also causes undue wear of SD cards in Raspberrys.

Good idea to change logging.

Either set --log-driver to none (so no logging), or --if syslog is written to a tempfs -- set it to use syslog.

Cmd line either

docker run -d --restart always --name restreamer --log-driver none ..... etc etc

or

docker run -d --restart always --name restreamer --log-driver syslog  .... etc etc
ioppermann commented 5 years ago

Hi

Thanks for the hint. Is this, what Docker is logging, specific to Restreamer? In case you want to silence the log output of Restreamer you can set the environment variable RS_LOGLEVEL to 0.

TheOriginalMrWolf commented 5 years ago

No -- it's general docker logging. Set log-driver to syslog to see in syslog. You can also check out "docker logs restreamer"

ioppermann commented 5 years ago

I will incorporate this as well in the documentation.

ioppermann commented 5 years ago

I added an extra page regarding this topic: https://datarhei.github.io/restreamer/docs/guides-sdcard.html