mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 08:27:46 +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:
@@ -480,6 +480,7 @@ async fn diagnostics_metrics(
|
||||
AxumState(diagnostics): AxumState<DiagnosticsState>,
|
||||
) -> impl axum::response::IntoResponse {
|
||||
let mut samples = diagnostics.state.metric_samples().await;
|
||||
samples.extend(aether_runtime::logging_metric_samples());
|
||||
let servers = diagnostics.server_contexts.lock().await.clone();
|
||||
for server in servers {
|
||||
samples.extend(server.metric_samples());
|
||||
|
||||
@@ -53,8 +53,13 @@ fn build_command() -> clap::Command {
|
||||
.subcommand_negates_reqs(true)
|
||||
}
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let _log_shutdown = aether_runtime::LogShutdownGuard::new();
|
||||
run()
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> anyhow::Result<()> {
|
||||
async fn run() -> anyhow::Result<()> {
|
||||
rustls::crypto::ring::default_provider()
|
||||
.install_default()
|
||||
.map_err(|_| anyhow::anyhow!("Failed to install rustls CryptoProvider"))?;
|
||||
|
||||
Reference in New Issue
Block a user