Skip to content

Commit 4fb2da7

Browse files
committed
refactor: changed thresholds to 90%
1 parent c3bdb12 commit 4fb2da7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/handlers/http/resource_check.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ use actix_web::{
2626
use sysinfo::System;
2727
use tracing::warn;
2828

29-
const CPU_UTILIZATION_THRESHOLD: f32 = 50.0;
30-
const MEMORY_UTILIZATION_THRESHOLD: f32 = 50.0;
29+
const CPU_UTILIZATION_THRESHOLD: f32 = 90.0;
30+
const MEMORY_UTILIZATION_THRESHOLD: f32 = 90.0;
3131

3232
/// Middleware to check system resource utilization before processing requests
3333
/// Returns 503 Service Unavailable if CPU or memory usage exceeds thresholds

0 commit comments

Comments
 (0)