Skip to content

Commit b73a3a9

Browse files
removing ingester liveness check at query server start (#744)
1 parent 24771f4 commit b73a3a9

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

server/src/handlers/http/modal/query_server.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
*
1717
*/
1818

19-
use crate::handlers::http::cluster::utils::check_liveness;
20-
use crate::handlers::http::cluster::{self, get_ingester_info};
19+
use crate::handlers::http::cluster;
2120
use crate::handlers::http::middleware::RouteExt;
2221
use crate::handlers::http::{base_path, cross_origin_config, API_BASE_PATH, API_VERSION};
2322

@@ -45,17 +44,6 @@ impl ParseableServer for QueryServer {
4544
prometheus: actix_web_prometheus::PrometheusMetrics,
4645
oidc_client: Option<crate::oidc::OpenidConfig>,
4746
) -> anyhow::Result<()> {
48-
let data = get_ingester_info().await?;
49-
50-
// on subsequent runs, the qurier should check if the ingester is up and running or not
51-
for ingester in data.iter() {
52-
if !check_liveness(&ingester.domain_name).await {
53-
eprintln!("Ingester at {} is not reachable", &ingester.domain_name);
54-
} else {
55-
println!("Ingester at {} is up and running", &ingester.domain_name);
56-
}
57-
}
58-
5947
let oidc_client = match oidc_client {
6048
Some(config) => {
6149
let client = config

0 commit comments

Comments
 (0)