-
Notifications
You must be signed in to change notification settings - Fork 211
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
Modify S3 Source to create multiple SqsWorkers #4239
Conversation
Signed-off-by: Krishna Kondaka <[email protected]>
@@ -43,6 +44,10 @@ public class S3SourceConfig { | |||
@Valid | |||
private SqsOptions sqsOptions; | |||
|
|||
@JsonProperty("workers") | |||
@Valid | |||
private int numWorkers = DEFAULT_NUMBER_OF_WORKERS; |
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.
Please add an @Min(1)
on this.
We should probably also have some sort of upper bound to prevent excessive values. Perhaps: @Max(1000)
.
@@ -24,6 +24,7 @@ | |||
|
|||
public class S3SourceConfig { | |||
static final Duration DEFAULT_BUFFER_TIMEOUT = Duration.ofSeconds(10); | |||
static final Duration DEFAULT_NUMBER_OF_WORKERS = 5; |
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.
I think we should leave this as 1
so that this change does not impact existing pipelines. I believe with large object sizes 1
is the ideal value also.
Signed-off-by: Krishna Kondaka <[email protected]>
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.
Thanks for making this change!
Description
Modify S3 Source to create multiple SqsWorkers to process SQS messages in parallel.
Provided configuration option to change the number of workers.
Issues Resolved
Resolves #[Issue number to be closed when this PR is merged]
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.