Skip to content

Commit e968866

Browse files
authored
Remove system memory check (#219)
1 parent b4b5ca2 commit e968866

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

server/src/handlers/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,10 @@ pub mod logstream;
2121

2222
use actix_web::http::StatusCode;
2323
use actix_web::HttpResponse;
24-
use sysinfo::{System, SystemExt};
2524

2625
use crate::{option::CONFIG, storage::ObjectStorageProvider};
2726

2827
pub async fn liveness() -> HttpResponse {
29-
// If the available memory is less than 100MiB, return a 503 error.
30-
// As liveness check fails, Kubelet will restart the server.
31-
if System::new_all().available_memory() < 100 * 1024 * 1024 {
32-
return HttpResponse::new(StatusCode::SERVICE_UNAVAILABLE);
33-
}
34-
3528
HttpResponse::new(StatusCode::OK)
3629
}
3730

0 commit comments

Comments
 (0)