We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4b5ca2 commit e968866Copy full SHA for e968866
server/src/handlers/mod.rs
@@ -21,17 +21,10 @@ pub mod logstream;
21
22
use actix_web::http::StatusCode;
23
use actix_web::HttpResponse;
24
-use sysinfo::{System, SystemExt};
25
26
use crate::{option::CONFIG, storage::ObjectStorageProvider};
27
28
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
-
35
HttpResponse::new(StatusCode::OK)
36
}
37
0 commit comments