GitHub user liyintang opened a pull request: https://github.com/apache/spark/pull/12026
[Spark-14230][STREAMING] Config the start time (jitter) for streaming⦠## What changes were proposed in this pull request? Currently, RecurringTimer will normalize the start time. For instance, if batch duration is 1 min, all the job will start exactly at 1 min boundary. This actually adds some burden to the streaming source. Assuming the source is Kafka, and there is a list of streaming jobs with 1 min batch duration, then at first few seconds of each min, high network traffic will be observed in Kafka. This makes Kafka capacity planning tricky. It will be great to have an option in the streaming context to set the job start time. In this way, user can add a jitter for the start time for each, and make Kafka fetch_request much smooth across the duration window. ## How was this patch tested? Unit test: A test case added. Integration test. (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) ⦠jobs You can merge this pull request into a Git repository by running: $ git pull https://github.com/liyintang/spark SPARK-14230 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12026.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #12026 ---- commit 3226a6044281b8d7ab53bf0e06cd9873f590a07a Author: Liyin Tang <liyin.t...@airbnb.com> Date: 2016-03-29T04:32:09Z [Spark-14230][STREAMING] Config the start time (jitter) for streaming jobs ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org