feat: expose replication workload admission snapshot (#3606)

This commit is contained in:
安正超
2026-06-19 11:13:17 +08:00
committed by GitHub
parent 00ca3b7c1c
commit 7cb7aefc3b
5 changed files with 140 additions and 8 deletions
@@ -75,3 +75,20 @@ from the heal runtime counters:
This is an observation surface only. Heal request admission, queue capacity,
priority merge/drop policy, task scheduling, retry handling, and repair
behavior are unchanged.
## Replication Snapshot Extraction
The RustFS integration layer now exposes a read-only replication admission
snapshot from the existing replication pool and queue statistics:
- `Replication` reports active regular, large-object, and MRF worker counts.
- `queued` reports the current site replication queue count when queue stats
are immediately observable.
- `limit` remains `None` because replication worker limits remain owned by the
async replication pool and resize policy.
- If the replication runtime has not initialized, or queue stats are currently
locked, the snapshot reports `Unknown` instead of blocking or guessing.
This is an observation surface only. Replication admission, queue channel
capacity, worker resize behavior, MRF handling, target dispatch, and resync
behavior are unchanged.