Skip to content

Dynamic Batch Interval Adjustment - #16993

Closed
zhangqiang2 wants to merge 2 commits into
apache:masterfrom
zhangqiang2:my_change
Closed

Dynamic Batch Interval Adjustment#16993
zhangqiang2 wants to merge 2 commits into
apache:masterfrom
zhangqiang2:my_change

Conversation

@zhangqiang2

Copy link
Copy Markdown

The current Spark Streaming version cannot support the change of batch interval at runtime, given that the speed of input data streams may not highly dynamic from current Internet applications. If we have to do so, one must stop the program first, modify the corresponding code, and then restart the program. However, this will interrupt the execution of entire program, and may cause the data loss. Towards this end, our contribution is to implement a Dynamic Batch Interval Adjustment functionality that can help change the batch interval size at runtime.

This functionality contains two algorithms. One is dynamic adjustment, and the other is static adjustment. The former can predict the size of input data stream and as a result the processing time, by using the most recent processing time and used batch interval. In this way, one can decide whether the batch interval needs to be changed or not, to avoid the data backlog, and secure the system stability. On the other hand, the static adjustment needs the user to manually change the configuration file.

JIRA Issue: https://issues.apache.org/jira/browse/SPARK-19663
My report: https://github.com/floatingtony/System-Lever-Optimization-of-Spark-Streaming

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@srowen

Copy link
Copy Markdown
Member

Please read http://spark.apache.org/contributing.html and start not with code but with a design doc. However, this has been discussed before on JIRA too IIRC and rejected.

@maropumaropu mentioned this pull request Apr 23, 2017
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
This pr proposed to close stale PRs. Currently, we have 400+ open PRs and there are some stale PRs whose JIRA tickets have been already closed and whose JIRA tickets does not exist (also, they seem not to be minor issues).
// Open PRs whose JIRA tickets have been already closed
Closesapache#11785Closesapache#13027Closesapache#13614Closesapache#13761Closesapache#15197Closesapache#14006Closesapache#12576Closesapache#15447Closesapache#13259Closesapache#15616Closesapache#14473Closesapache#16638Closesapache#16146Closesapache#17269Closesapache#17313Closesapache#17418Closesapache#17485Closesapache#17551Closesapache#17463Closesapache#17625
// Open PRs whose JIRA tickets does not exist and they are not minor issues
Closesapache#10739Closesapache#15193Closesapache#15344Closesapache#14804Closesapache#16993Closesapache#17040Closesapache#15180Closesapache#17238
N/A
Author: Takeshi Yamamuro <yamamuro@apache.org>
Closesapache#17734 from maropu/resolved_pr.
Change-Id: Id2e590aa7283fe5ac01424d30a40df06da6098b5
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
## What changes were proposed in this pull request?
This pr proposed to close stale PRs. Currently, we have 400+ open PRs and there are some stale PRs whose JIRA tickets have been already closed and whose JIRA tickets does not exist (also, they seem not to be minor issues).
// Open PRs whose JIRA tickets have been already closed
Closesapache#11785Closesapache#13027Closesapache#13614Closesapache#13761Closesapache#15197Closesapache#14006Closesapache#12576Closesapache#15447Closesapache#13259Closesapache#15616Closesapache#14473Closesapache#16638Closesapache#16146Closesapache#17269Closesapache#17313Closesapache#17418Closesapache#17485Closesapache#17551Closesapache#17463Closesapache#17625
// Open PRs whose JIRA tickets does not exist and they are not minor issues
Closesapache#10739Closesapache#15193Closesapache#15344Closesapache#14804Closesapache#16993Closesapache#17040Closesapache#15180Closesapache#17238
## How was this patch tested?
N/A
Author: Takeshi Yamamuro <yamamuro@apache.org>
Closesapache#17734 from maropu/resolved_pr.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@zhangqiang2@AmplabJenkins@srowen@floatingtony