-
Notifications
You must be signed in to change notification settings - Fork 215
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
Add s3 sink client options #4959
Conversation
Signed-off-by: Hai Yan <[email protected]>
private static final int DEFAULT_MAX_CONNECTIONS = 50; | ||
private static final Duration DEFAULT_ACQUIRE_TIMEOUT = Duration.ofSeconds(10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these the default values for SdkAsyncHttpClient
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes they are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to be new defaults for every new S3 sink pipeline?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I didn't change how the S3 async client is built when client
options are not provided. So the pipeline should remain the same before and after this change if client
options are not explicitly configured.
private static final Duration DEFAULT_ACQUIRE_TIMEOUT = Duration.ofSeconds(10); | ||
|
||
@JsonProperty("max_connections") | ||
@Min(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we give a sanity upper bound? Maybe 5000?
Signed-off-by: Hai Yan <[email protected]>
Description
Adds max_connections and acquire_timeout options to s3 sink client.
Example:
Issues Resolved
Resolves #4949
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.