I run about 90 containers in 60 stacks on a Synology DS923+: four hard drives, btrfs, RAID 5. For months the drives ticked all night. Disk 1 sat at 77–88 % busy while nothing was happening, and the IO load average hovered between 5 and 8.

It wasn't Jellyfin, Immich or a backup job. It was healthchecks.

Why a healthcheck writes to disk

Every time Docker runs a healthcheck probe, it records the result in the container's state and saves that state to disk. That's a small write plus an fsync. One container probing every 30 seconds is nothing.

But many compose examples ship with 5- or 10-second intervals, and once you have forty containers with healthchecks you have a steady stream of small synchronous writes. On btrfs (copy-on-write, checksummed metadata) over RAID 5 (a partial-stripe write means read, modify, write), each of those tiny writes turns into several physical ones. The disks never get to rest.

Measure your own

List every container's healthcheck interval:

docker ps -q | xargs docker inspect \ --format '{{.Name}} {{if .Config.Healthcheck}}{{.Config.Healthcheck.Interval}}{{else}}none{{end}}' 

0s means Docker's default of 30 seconds. Add up 60 / interval for every container and you have your probes per minute. Mine was 232.

Then watch the disks for a few minutes with nothing else running: iostat -x 5 if you have it, or the disk utilisation graph in your NAS's resource monitor.

The fix

Give everything that doesn't need second-by-second detection a 60-second interval:

healthcheck: test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"] interval: 60s timeout: 10s retries: 3 start_period: 60s 

start_period keeps a slow first start from counting as a failure. If your Docker Engine is version 25 or newer, start_interval: 5s lets it probe quickly during that start period only.

Don't delete the healthchecks. They're what depends_on: condition: service_healthy waits for, and what tells you a container is up but not actually working.

Results

Moving 15 stacks from 5–10 s intervals to 60 s:

Before After
Healthcheck probes per minute 232 94
Write IOPS at idle ~380–440 ~295
Disk 1 busy at idle 77–88 % 57 %
IO load average 5–8 2–3

It was the biggest single improvement I made to that NAS, and it took ten minutes.

What else made the box calm

Healthchecks were chapter one of a longer list:

  • Redeploying one stack at a time and checking it's running and healthy before the next. A batch of 30 Portainer updates at once took down about 70 containers on this box.
  • The DSM boot-order trap: Container Manager starts containers one by one after a restart, so an MQTT broker can come up 25 minutes late. restart: always on the few that matter fixes it.
  • Memory caps on every container, so one leak can't take the house down.
  • No dashboard mounts docker.sock: a read-only socket proxy answers their questions instead.

I wrote all of it up as The Quiet NAS: a 44-page guide plus 26 ready-to-use files (compose stacks, scripts, a Home Assistant disk-health alert and checklists). Most of it works on any Docker host with hard drives; the Synology-only parts are marked.
→ The Quiet NAS

Code LAUNCH25 takes 25 % off until Monday 30 November.

I'm the author. Happy to answer questions in the comments, especially if your numbers look different from mine.