GitHub user chengqiangboy opened a pull request:
https://github.com/apache/spark/pull/13255
fix SPARK-15429
Make PIDRateEstimator more suitable to the situation of
`spark.streaming.concurrentJobs > 1`
## What changes were proposed in this pull request?
First, add a new parameter `concurrentJobs` to PIDRateEstimator.
Second, We can change the `error = latestRate - processingRate` to `error =
latestRate - processingRate * concurrentJobs.toDouble`. And change the
`historicalError = schedulingDelay.toDouble * processingRate /
batchIntervalMillis` to `historicalError = schedulingDelay.toDouble *
processingRate * concurrentJobs.toDouble / batchIntervalMillis`.
## How was this patch tested?
Use `PIDRateEstimatorSuite` to test.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chengqiangboy/spark SPARK-15429
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13255.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 #13255
----
commit 661e8ddad43f356a73fa47f00b589b99c8ca9349
Author: cq365423762 <[email protected]>
Date: 2016-05-22T14:35:48Z
Make PIDRateEstimator more suitable to the situation of
`spark.streaming.concurrentJobs > 1`
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]