mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
57e30e11c0176eaaa5133debfd2c062dfbb54acf
Host admission is a try-lock. With one cut slot per host, every volume whose timer fires while another volume's cut holds the slot was refused and backed off 1 s doubling to 30 s, adding up to 30 s to its interval and favouring whichever volume happened to win. hostlimit returns ErrSlotsHeld (an ErrBusy) when every slot is held. The cut policy treats that refusal as a wait: no backoff, no minimum spacing, the timer is not reset, and the retry comes after the volume's stable slot jitter (at most 200 ms). Other errors, an oversized payload or an unusable pool included, keep the backoff. Status reports CutSchedule.HostSlotWaits and HostSlotWaitSinceNs, the start of the current wait (0 when not waiting). Ledger row INV-CUT-TIMER-SLOT-WAIT-001. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%