gistfile1.txt @Configurationpublic class ESConfiguration { @Bean public RestClient restClient() { return RestClient.builder(new HttpHost("apm-server", 9200, "http")) .setRequestConfigCallback(requestConfigBuilder - requestConfigBuilder.setC
@Configuration public class ESConfiguration { @Bean public RestClient restClient() { return RestClient.builder(new HttpHost("apm-server", 9200, "http")) .setRequestConfigCallback(requestConfigBuilder -> requestConfigBuilder.setConnectTimeout(60000) .setSocketTimeout(60000)) .setHttpClientConfigCallback(httpClientBuilder -> httpClientBuilder.setDefaultIOReactorConfig( IOReactorConfig.custom().setIoThreadCount(4).build())) .setMaxRetryTimeoutMillis(60000) .build(); } }