fix: decouple readiness from cluster health (#3912)

* fix: include foreground write pressure

* fix: split readiness and cluster health probes

* fix: publish ready on node readiness

* fix: bound cluster health collection

* test: pin health probe collector routing

* fix: qualify app storage ECStore type

* test(admin): narrow runtime capabilities topology assertion

---------

Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
cxymds
2026-06-26 21:55:18 +08:00
committed by GitHub
parent 6469d6ada8
commit 7820a55fdc
14 changed files with 769 additions and 165 deletions
+1 -15
View File
@@ -521,7 +521,7 @@ mod tests {
CapabilityState, CapabilityStatus, MemorySamplingState, ObservabilitySnapshot, PlatformSupport, TopologyCapabilities,
TopologySnapshot, UserspaceProfilingCapability,
};
use rustfs_concurrency::{AdmissionState, WorkloadClass};
use rustfs_concurrency::WorkloadClass;
use rustfs_madmin::{InfoMessage, StorageInfo};
#[tokio::test]
@@ -539,20 +539,6 @@ mod tests {
assert_eq!(response.cluster_snapshot_summary, None);
assert_eq!(response.summary.cluster_snapshot.state, CapabilityState::Unknown);
assert_eq!(response.observability.platform.os.as_deref(), Some(std::env::consts::OS));
assert_eq!(
response
.workload_admission
.get(WorkloadClass::ForegroundRead)
.map(|snapshot| snapshot.state),
Some(AdmissionState::Open)
);
assert_eq!(
response
.workload_admission
.get(WorkloadClass::ForegroundWrite)
.map(|snapshot| snapshot.state),
Some(AdmissionState::Disabled)
);
assert_eq!(response.workload_admission.entries().len(), WorkloadClass::REQUIRED.len());
}