Skip to content

Commit

Permalink
fix(backend): fix timeout for healthcheck (#5962)
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfpuchert authored Nov 22, 2023
1 parent 9e47004 commit 852a3c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public OpenSearchClusterOperations(Logger logger, OpenSearchClient openSearchCli

public boolean isHealthy() {
try {
final HealthResponse response = openSearchClient.cluster().health(h -> h.timeout(t -> t.time("500")));
final HealthResponse response = openSearchClient.cluster().health(h -> h.timeout(t -> t.time("5s")));
final HealthStatus status = response.status();
return !response.timedOut() && !status.equals(HealthStatus.Red);
} catch (IOException e) {
Expand Down

0 comments on commit 852a3c1

Please sign in to comment.