[
https://issues.apache.org/jira/browse/BEAM-8382?focusedWorklogId=331521&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-331521
]
ASF GitHub Bot logged work on BEAM-8382:
----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Oct/19 17:17
Start Date: 21/Oct/19 17:17
Worklog Time Spent: 10m
Work Description: aromanenko-dev commented on issue #9765: [BEAM-8382]
Add polling interval to KinesisIO.Read
URL: https://github.com/apache/beam/pull/9765#issuecomment-544616617
@cmachgodaddy My understanding is the following. `KinesisSource.split()`
method is called on driver, before running a pipeline. So, it will create a
list of `KinesisSource`s for every split/partition (based on
`initialCheckpointGenerator`) that will be distributed on workers and run
there. Then every `KinesisSource` will create `KinesisReader` with own
`CheckpointGenerator` (on worker) and instantiate `ShardReadersPool` which will
create thread for every shard iterator (since every reader can read from more
than one shard). So, I don't see nested parallelism here. Though, it would be
great to test it in case if we have a bug there since this logic is quite
complicated.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 331521)
Time Spent: 3h 10m (was: 3h)
> Add polling interval to KinesisIO.Read
> --------------------------------------
>
> Key: BEAM-8382
> URL: https://issues.apache.org/jira/browse/BEAM-8382
> Project: Beam
> Issue Type: Improvement
> Components: io-java-kinesis
> Affects Versions: 2.13.0, 2.14.0, 2.15.0
> Reporter: Jonothan Farr
> Assignee: Jonothan Farr
> Priority: Major
> Time Spent: 3h 10m
> Remaining Estimate: 0h
>
> With the current implementation we are observing Kinesis throttling due to
> ReadProvisionedThroughputExceeded on the order of hundreds of times per
> second, regardless of the actual Kinesis throughput. This is because the
> ShardReadersPool readLoop() method is polling getRecords() as fast as
> possible.
> From the KDS documentation:
> {quote}Each shard can support up to five read transactions per second.
> {quote}
> and
> {quote}For best results, sleep for at least 1 second (1,000 milliseconds)
> between calls to getRecords to avoid exceeding the limit on getRecords
> frequency.
> {quote}
> [https://docs.aws.amazon.com/streams/latest/dev/service-sizes-and-limits.html]
> [https://docs.aws.amazon.com/streams/latest/dev/developing-consumers-with-sdk.html]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)