1. Timeout waiting for connection from pool
Error:
com.aliyun.opensearch.sdk.dependencies.org.apache.http.conn.ConnectionPoolTimeoutException:
Timeout waiting for connection from pool
Description: The default capacity of the connection pool in OpenSearch SDK for Java is 50 connections.
You can use the following sample code to adjust the capacity of the connection pool:
import com.aliyun.opensearch.util.HttpClientManager;
// ...
HttpClientManager.setMaxConnections(100);