mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 10:37:23 +01:00
The lease extension's durable store write is timed around the write alone and recorded under the lease lock: the latest duration and the slowest of the last minute (rolling, one bucket per second, like the clamp counter). LeaseStats and the status endpoint carry them (extension_write_last_ms, extension_write_max_last_minute_ms; -1 before the first write, or with none in the last minute). Write latency is the early lag signal; the headroom alarm and clamps follow it. Storage identity gains statfs f_fsid (Linux). Two identities that both know it must agree on machine id, device and fsid; when either side's fsid is unknown (an older reporter, a platform without statfs) the comparison falls back to machine id and device. Heartbeats carry it in the new durable_root_fsid field (regenerated with the pinned generators); the volume host reports it and the master samples its own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>