Skip to content

Commit

Permalink
Merge pull request #3754 from atlanhq/PLT-2568-UseMultiHostsInLowLeve…
Browse files Browse the repository at this point in the history
…lClientStage

PLT-2748 use multiple ES hosts
  • Loading branch information
sriram-atlan authored Nov 18, 2024
2 parents 4eefe0b + 1276c8e commit 995c2d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static RestClient getLowLevelClient() {
try {
List<HttpHost> httpHosts = getHttpHosts();

RestClientBuilder builder = RestClient.builder(httpHosts.get(0));
RestClientBuilder builder = RestClient.builder(httpHosts.toArray(new HttpHost[0]));
builder.setHttpClientConfigCallback(httpAsyncClientBuilder -> httpAsyncClientBuilder.setKeepAliveStrategy(((httpResponse, httpContext) -> 3600000)));
builder.setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder
.setConnectTimeout(AtlasConfiguration.INDEX_CLIENT_CONNECTION_TIMEOUT.getInt())
Expand Down

0 comments on commit 995c2d7

Please sign in to comment.