Skip to content

Commit

Permalink
removing check of ingesters' liveness at query server start
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsinhaparseable committed Apr 7, 2024
1 parent 24771f4 commit b9d2773
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions server/src/handlers/http/modal/query_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
*
*/

use crate::handlers::http::cluster::utils::check_liveness;
use crate::handlers::http::cluster::{self, get_ingester_info};
use crate::handlers::http::cluster::{self};
use crate::handlers::http::middleware::RouteExt;
use crate::handlers::http::{base_path, cross_origin_config, API_BASE_PATH, API_VERSION};

Expand Down Expand Up @@ -45,17 +44,6 @@ impl ParseableServer for QueryServer {
prometheus: actix_web_prometheus::PrometheusMetrics,
oidc_client: Option<crate::oidc::OpenidConfig>,
) -> anyhow::Result<()> {
let data = get_ingester_info().await?;

// on subsequent runs, the qurier should check if the ingester is up and running or not
for ingester in data.iter() {
if !check_liveness(&ingester.domain_name).await {
eprintln!("Ingester at {} is not reachable", &ingester.domain_name);
} else {
println!("Ingester at {} is up and running", &ingester.domain_name);
}
}

let oidc_client = match oidc_client {
Some(config) => {
let client = config
Expand Down

0 comments on commit b9d2773

Please sign in to comment.