1. Timeout waiting for connection from pool
报错:
com.aliyun.opensearch.sdk.dependencies.org.apache.http.conn.ConnectionPoolTimeoutException:
Timeout waiting for connection from pool
说明:Opensearch Java SDK连接池默认大小为50。
可以通过以下方式适当调整连接池大小:
import com.aliyun.opensearch.util.HttpClientManager;
// ...
HttpClientManager.setMaxConnections(100);
文档内容是否对您有帮助?