You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Jonothan Farr (Jira)" <ji...@apache.org> on 2019/10/11 00:58:00 UTC

[jira] [Created] (BEAM-8382) Add polling interval to KinesisIO.Read

Jonothan Farr created BEAM-8382:
-----------------------------------

             Summary: 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.15.0, 2.14.0, 2.13.0
            Reporter: Jonothan Farr
            Assignee: Jonothan Farr


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)