This repository was archived by the owner on Dec 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
common/src/main/java/com/intel/hibench/streambench/common
flinkbench/src/main/java/com/intel/flinkbench Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ hibench.streambench.flink.parallelism 20
107107
108108hibench.streambench.flink.bufferTimeout 5
109109
110+ hibench.streambench.flink.checkpointDuration 1000
111+
110112#########################################################
111113# Storm Config
112114#########################################################
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ public class StreamBenchConfig {
8686 // ======================================
8787 public static String FLINK_BUFFERTIMEOUT = "hibench.streambench.flink.bufferTimeout" ;
8888
89+ public static String FLINK_CHECKPOINTDURATION = "hibench.streambench.flink.checkpointDuration" ;
90+
8991 // ======================================
9092 // Storm Related Conf
9193 // ======================================
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ public static void runAll(String[] args) throws Exception {
5151 conf .windowDuration = cl .getProperty (StreamBenchConfig .FixWINDOW_DURATION );
5252 conf .windowSlideStep = cl .getProperty (StreamBenchConfig .FixWINDOW_SLIDESTEP );
5353
54+ conf .checkpointDuration = Long .parseLong (cl .getProperty (StreamBenchConfig .FLINK_CHECKPOINTDURATION ));
5455 int producerNum = Integer .parseInt (cl .getProperty (StreamBenchConfig .DATAGEN_PRODUCER_NUMBER ));
5556 long recordsPerInterval = Long .parseLong (cl .getProperty (StreamBenchConfig .DATAGEN_RECORDS_PRE_INTERVAL ));
5657 int intervalSpan = Integer .parseInt (cl .getProperty (StreamBenchConfig .DATAGEN_INTERVAL_SPAN ));
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public void processStream(final FlinkBenchConfig config) throws Exception{
1818
1919 final StreamExecutionEnvironment env = StreamExecutionEnvironment .getExecutionEnvironment ();
2020 env .setBufferTimeout (config .bufferTimeout );
21+ env .enableCheckpointing (config .checkpointDuration );
2122
2223 createDataStream (config );
2324 DataStream <Tuple2 <String , String >> dataStream = env .addSource (getDataStream ());
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ public class WordCount extends StreamBase {
3838 public void processStream (final FlinkBenchConfig config ) throws Exception {
3939 final StreamExecutionEnvironment env = StreamExecutionEnvironment .getExecutionEnvironment ();
4040 env .setBufferTimeout (config .bufferTimeout );
41+ env .enableCheckpointing (config .checkpointDuration );
4142 createDataStream (config );
4243 DataStream <Tuple2 <String , String >> dataStream = env .addSource (getDataStream ());
4344 dataStream
Original file line number Diff line number Diff line change @@ -39,5 +39,6 @@ public class FlinkBenchConfig implements Serializable{
3939
4040 // Flink related
4141 public long bufferTimeout ;
42+ public long checkpointDuration ;
4243
4344}
You can’t perform that action at this time.
0 commit comments