Skip to content

Commit 50f07fb

Browse files
committed
increase route
1 parent 237748f commit 50f07fb

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEXT_CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Release v0.70.0
44

55
### New Features and Improvements
6+
* Increase maximum number of concurrent HTTP connections per Workspace from 2 to 20.
67

78
### Bug Fixes
89

databricks-sdk-java/src/main/java/com/databricks/sdk/core/commons/CommonsHttpClient.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ private CommonsHttpClient(Builder builder) {
141141
} else {
142142
PoolingHttpClientConnectionManager connectionManager =
143143
new PoolingHttpClientConnectionManager();
144+
// Total number of connections allowed by the connection manager.
144145
connectionManager.setMaxTotal(100);
146+
// Maximum number of connections per route. In most cases, this means per Workspace.
147+
// DataPlane resources have a dedicated route and are not subject to this limit.
148+
connectionManager.setDefaultMaxPerRoute(20);
145149
httpClientBuilder.setConnectionManager(connectionManager);
146150
}
147151
if (builder.requestRetryHandler != null) {

0 commit comments

Comments
 (0)