Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Minimserver in Docker Container Keeps Writing To Disk
30-08-2022, 04:27
Post: #7
RE: Minimserver in Docker Container Keeps Writing To Disk
(29-08-2022 09:37)bubbleguuum Wrote:  Had the same problem reported by a user of BubbleUPnP Server, which when run as a docker container was preventing his spinning hard drive to go to sleep.

It was not easy to troubleshoot, but long story short:

- obviously, MinimServer must not write to disk at regular intervals: logs or something else

- OpenJDK writes performance data to disk (in /tmp) at regular interval. This must be disabled with "-XX:-UsePerfData" passed as JVM startup argument.

- Docker does its own writing to disk on host. If the running docker image has a periodic health check declared its Dockerfile, the results are written to file config.v2.json (on host).
It must be disabled with --no-healthcheck passed to docker at container creation (docker create) or running (docker run).
If MinimServer writes regularly to stdout, Docker will log that output to file on host. This can be disabled with "--log-driver none" passed to docker

Same user reporting the problem Smile

I had not tried the same thing because it was a different process writing to disk (not dockerd, but kthreadd) doing the writing.
Also, I cannot find where to add the "-XX:-UsePerfData" parameter: I don’t know how the Minimserver container is organized, where I would find the equivalent of your launch.sh file.

Yet, today, I set up another container - with the --log-driver none and --no-healthcheck parameters - but as usual I have to wait for a few hours after installing a container for the NAS to go to sleep again: It just loves to re-organize its files after any kind of install. The verdict is still pending; I will report back.
Thank you for sharing your findings summary here!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Minimserver in Docker Container Keeps Writing To Disk - braunsch - 30-08-2022 04:27

Forum Jump:


User(s) browsing this thread: 1 Guest(s)