GitHub user maropu opened a pull request:

    [SPARK-18620][Streaming][Kinesis] Flatten input rates in timeline for 
streaming + kinesis

    ## What changes were proposed in this pull request?
    This pr is to make input rates in timeline more flat for spark streaming + 
    Since kinesis workers fetch records and push them into block generators in 
bulk, timeline in web UI has many spikes when `maxRates` applied (See a 
Figure.1 below). This fix splits fetched input records into multiple 
`adRecords` calls.
    Figure.1 Apply `maxRates=500` in vanilla Spark
    <img width="1084" alt="apply_limit in_vanilla_spark" 
    Figure.2 Apply `maxRates=500` in Spark with my patch
    <img width="1056" alt="apply_limit in_spark_with_my_patch" 
    ## How was this patch tested?
    Add tests to check to split input records into multiple `addRecords` calls.

You can merge this pull request into a Git repository by running:

    $ git pull SPARK-18620

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #16114


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to