Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
AWS OpenSearch 2.17
Describe the issue:
I am trying to connect to an AWS Opensearch 2.17 from my ECS.
I was using the Elasticsearch 6.6.0 client library previously where I was using an interceptor and setHttpClientConfigCallback to set the following configurations in the RestClient: setMaxConnTotal, setIoThreadCount, setMaxRetryTimeoutMillis
I haven’t been able to migrate this setup into the OpenSearch java client library since the high-level rest client seems deprecated. This is the setup I require.
new RestHighLevelClient(RestClient
.builder(HttpHost.create("my_os_url")
.setHttpClientConfigCallback(hacb -> hacb.addInterceptorLast(interceptor).setMaxConnTotal(1)
.setDefaultIOReactorConfig(IOReactorConfig.custom().setIoThreadCount(500).build()))
.setMaxRetryTimeoutMillis(60 * 1000));
Can someone help me set this up in the opensearch-java library?