homek8s/infrastructure/node-io/configmap.yaml

20 lines
981 B
YAML
Raw Normal View History

apiVersion: v1
kind: ConfigMap
metadata:
name: etcd-io-guard-config
namespace: node-io
data:
# Bounded writeback backlog. Measured on 2026-10-26 (see README.md):
# default vm.dirty_ratio=20 (3 GB on this 15 GB box) lets the amd64 dind
# runner queue 1-3 GB of dirty pages; an etcd WAL fdatasync has to wait for
# the device to flush everything already submitted, which is where the
# multi-second slow fdatasync comes from. 64 MiB / 16 MiB removed every
# sample above 8 s and cut the median fsync from 512 ms to ~10 ms at a ~17 %
# dind write-throughput cost. Raise both together if CI throughput matters
# more than the etcd tail; keep background <= bytes.
dirty-bytes: "67108864"
dirty-background-bytes: "16777216"
# blk-throttle cap on the dind container's own cgroup (bytes/s write).
# dirty_bytes bounds the backlog; this bounds how much of the device queue
# dind may occupy, so etcd's tiny WAL writes find a free slot.
dind-wbps: "41943040"