Server Load Tuning

Completed on 2026-05-22 02:10:10 EDT on branch server-load.

Summary

Reduced the configured causes of steady server load by stretching Docker healthcheck intervals to 300 seconds across the active external stacks, slowing Islandflow API Redis live-cache flush defaults, and disabling append-only persistence in the checked-in Islandflow Redis configs because this Redis usage is cache-oriented.

Changes Made

Context

Observed runtime behavior showed high containerd and dockerd CPU with a constant stream of Docker exec_create, exec_start, and exec_die events generated by healthchecks. The host Redis instance was also hot, with roughly 19k ops/sec and command stats dominated by LPUSH and LTRIM from the API live-cache rewrite path.

Important Implementation Details

Relevant Diff Snippets

services/api/src/live.ts
const DEFAULT_REDIS_FLUSH_INTERVAL_MS = 1000;
const DEFAULT_REDIS_FLUSH_MAX_ITEMS = 500;
deployment/native/config/redis.conf
appendonly no
/home/delta/apps/freedomtracker/deployment/docker/compose.prod.yml
healthcheck:
  interval: 300s
/home/delta/netdata/docker-compose.yml
healthcheck:
  test: ["CMD-SHELL", "/usr/sbin/health.sh"]
  interval: 300s

Expected Impact for End-Users

Validation

Issues, Limitations, and Mitigations

Follow-up Work