Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source s3 cache connection #35808

Merged
merged 2 commits into from Mar 6, 2024
Merged

Source s3 cache connection #35808

merged 2 commits into from Mar 6, 2024

Conversation

clnoll
Copy link
Contributor

@clnoll clnoll commented Mar 5, 2024

When switching to the concurrent CDK, we removed caching of the AWS client. This decision was based on local performance testing that showed competition among threads for the connection, which capped performance at a lower value than expected for the concurrency limit.

However, when I was taking a look at S3 performance with concurrency, I noticed that it's actually currently worse than it was with the cached connection. I think this is because the access patterns that we're seeing in practice don't actually require multiple open connections at once, and actually benefit more from the shared connection.

If we see connections with degraded performance with the cached connection, we can consider creating a connection pool as described here.

Copy link

vercel bot commented Mar 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2024 3:12am

@octavia-squidington-iii octavia-squidington-iii added area/connectors Connector related issues area/documentation Improvements or additions to documentation labels Mar 5, 2024
Copy link
Contributor

@girarda girarda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! :shipit:

@@ -56,23 +57,24 @@ def s3_client(self) -> BaseClient:
# list or read files.
raise ValueError("Source config is missing; cannot create the S3 client.")

client_kv_args = _get_s3_compatible_client_args(self.config) if self.config.endpoint else {}
if self._s3_client is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe deserves a comment explaining why we're caching the s3 client

@clnoll clnoll merged commit bba545e into master Mar 6, 2024
30 of 31 checks passed
@clnoll clnoll deleted the source-s3-cache-connection branch March 6, 2024 13:19
xiaohansong pushed a commit that referenced this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/s3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants