feat(ingest): add configurable connection pool settings to REST emitter#16486
Merged
Conversation
Adds pool_connections and pool_maxsize configuration options to allow tuning of the HTTP connection pool used by the REST emitter. This helps prevent "Connection pool is full" warnings when running high-concurrency ingestion workloads. The hardcoded pool_maxsize=100 was originally added in Oct 2021 to support parallel writes, but was never made configurable. Users running with max_threads > 100 or slow requests could exhaust the pool. Configuration can be set via: - YAML config: pool_maxsize, pool_connections in sink config - Environment variables: DATAHUB_REST_EMITTER_DEFAULT_POOL_MAXSIZE, DATAHUB_REST_EMITTER_DEFAULT_POOL_CONNECTIONS - Defaults to 100 for both (maintains backward compatibility) Available in both ingestion sink and Python SDK (DataHubGraph). Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Member
Connector Tests ResultsAll connector tests passed for commit Autogenerated by the connector-tests CI pipeline. |
Contributor
|
Linear: ING-1859 Thanks for your contribution! We have created an internal ticket to track this PR. A member of the core DataHub team will be assigned to review it within the next few business days - you will get a follow-up comment once a reviewer is assigned. |
Contributor
|
Your PR has been assigned to @skrydal (piotr.skrydalewicz) for review (ING-1859). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
pool_connectionsandpool_maxsizeconfiguration options to the REST emitter to allow tuning of HTTP connection pool settings. This helps prevent "Connection pool is full" warnings when running high-concurrency ingestion workloads.Background
The hardcoded
pool_maxsize=100was originally added in October 2021 (PR #3431) to support parallel metadata writes. However, it was never made configurable. Users running withmax_threads > 100or experiencing slow requests (30+ second timeouts) could exhaust the connection pool, resulting in warnings like:Changes
pool_connectionsandpool_maxsizefields toDatahubClientConfigDATAHUB_REST_EMITTER_DEFAULT_POOL_CONNECTIONS(default: 100)DATAHUB_REST_EMITTER_DEFAULT_POOL_MAXSIZE(default: 100)DataHubGraph)Configuration Options
Priority order:
Example YAML config:
Example Python SDK:
Testing
./gradlew :metadata-ingestion:lintFix)Checklist
🤖 Generated with Claude Code