mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-07 09:57:47 +08:00
fix: harden concurrency limits and high-RPM runtime paths
Bound request, stream, queue, and shutdown resource lifetimes. Reduce scheduler and Redis hot-path work and isolate database maintenance. Include regression coverage, load probes, and concurrency audit results.
This commit is contained in:
@@ -643,6 +643,24 @@ impl RequestCandidateQueueRuntime {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn pending_writes(&self) -> usize {
|
||||
[
|
||||
self.metrics.pending_current.load(Ordering::Acquire),
|
||||
self.metrics
|
||||
.priority_pending_current
|
||||
.load(Ordering::Acquire),
|
||||
self.metrics.active_pending_current.load(Ordering::Acquire),
|
||||
self.metrics
|
||||
.terminal_pending_current
|
||||
.load(Ordering::Acquire),
|
||||
self.metrics
|
||||
.terminal_barrier_pending
|
||||
.load(Ordering::Acquire),
|
||||
]
|
||||
.into_iter()
|
||||
.fold(0_usize, usize::saturating_add)
|
||||
}
|
||||
|
||||
pub(crate) fn metric_samples(&self) -> Vec<MetricSample> {
|
||||
vec![
|
||||
MetricSample::new(
|
||||
|
||||
Reference in New Issue
Block a user