[
https://issues.apache.org/jira/browse/FLINK-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15195216#comment-15195216
]
ASF GitHub Bot commented on FLINK-3492:
---------------------------------------
Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/1794#discussion_r56155005
--- Diff:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
---
@@ -277,6 +277,29 @@ public StreamExecutionEnvironment
enableCheckpointing(long interval) {
/**
* Enables checkpointing for the streaming job. The distributed state
of the streaming
* dataflow will be periodically snapshotted. In case of a failure, the
streaming
+ * dataflow will be restarted from the latest completed checkpoint.
This method selects
+ * {@link CheckpointingMode#EXACTLY_ONCE} guarantees.
+ *
+ * <p>The job draws checkpoints periodically, in the given interval.
The state will be
+ * stored in the configured state backend.</p>
+ *
+ * <p>NOTE: Checkpointing iterative streaming dataflows in not properly
supported at
+ * the moment. For that reason, iterative jobs will not be started if
used
+ * with enabled checkpointing. To override this mechanism, use the
+ * {@link #enableCheckpointing(long, CheckpointingMode, boolean)}
method.</p>
+ *
+ * @param interval Time interval between state checkpoints in
milliseconds.
+ * @param minInterval Time interval between the last finished
checkpoint and the next one in mills.
+ */
+ public StreamExecutionEnvironment enableCheckpointing(long interval,
long minInterval) {
--- End diff --
`minInterval` might be confusing for users because it actually is the pause
between successive checkpoints.
> Allow users to define a min pause between checkpoints
> -----------------------------------------------------
>
> Key: FLINK-3492
> URL: https://issues.apache.org/jira/browse/FLINK-3492
> Project: Flink
> Issue Type: Improvement
> Components: Streaming
> Reporter: Robert Metzger
> Assignee: Chesnay Schepler
>
> FLINK-3051 introduced already a filed in the {{CheckpointConfig}} to specify
> a min pause between checkpoints.
> In high-load situations (big state), jobs might spend their entire time
> creating snapshots, not processing data. With a min pause between
> checkpoints, users can guarantee that there is a certain time-span the system
> can use for doing some actual data processing.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)