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:
@@ -34,6 +34,14 @@ impl PostgresTransactionOptions {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn maintenance() -> Self {
|
||||
Self {
|
||||
mode: TransactionMode::ReadWrite,
|
||||
statement_timeout_ms: Some(300_000),
|
||||
lock_timeout_ms: Some(30_000),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn validate(&self) -> Result<(), DataLayerError> {
|
||||
if matches!(self.statement_timeout_ms, Some(0)) {
|
||||
return Err(DataLayerError::InvalidConfiguration(
|
||||
|
||||
Reference in New Issue
Block a user