RocMarshal commented on a change in pull request #17943:
URL: https://github.com/apache/flink/pull/17943#discussion_r810762606
##########
File path: docs/content.zh/docs/dev/datastream/fault-tolerance/checkpointing.md
##########
@@ -43,34 +43,40 @@ Flink 的 checkpoint 机制会和持久化存储进行交互,读写流与状
## 开启与配置 Checkpoint
-默认情况下 checkpoint 是禁用的。通过调用 `StreamExecutionEnvironment` 的
`enableCheckpointing(n)` 来启用 checkpoint,里面的 *n* 是进行 checkpoint 的间隔,单位毫秒。
+默认情况下 checkpoint 是禁用的。通过调用 `StreamExecutionEnvironment` 的
`enableCheckpointing(n)` 来启用 checkpoint,其中 *n* 表示 [checkpoint 时间间隔]({{< ref
"docs/ops/production_ready#choose-the-right-checkpoint-interval" >}}),单位毫秒。
Checkpoint 其他的属性包括:
- - *精确一次(exactly-once)对比至少一次(at-least-once)*:你可以选择向 `enableCheckpointing(long
interval, CheckpointingMode mode)` 方法中传入一个模式来选择使用两种保证等级中的哪一种。
+ - *checkpoint 存储(storage)*:用户可以设置 checkpoint 快照持久化的位置。 默认情况下,Flink 会存储在
JobManager 的堆中。在生产环境中,建议改用持久化的文件系统。 请参考 [checkpoint 存储]({{< ref
"docs/ops/state/checkpoints#checkpoint-storage" >}}) 以获取有关作业级别和集群级别的可用配置的更多详细信息。
Review comment:
```suggestion
- *checkpoint 存储(storage)*:用户可以设置 checkpoint 快照持久化的位置。 默认情况下,Flink 会存储在
JobManager 的堆内存中。在生产环境中,建议改用持久化的文件系统。 请参考 [checkpoint 存储]({{< ref
"docs/ops/state/checkpoints#checkpoint-storage" >}}) 以获取有关作业级别和集群级别的可用配置的更多详细信息。
```
##########
File path: docs/content.zh/docs/dev/datastream/fault-tolerance/checkpointing.md
##########
@@ -43,34 +43,40 @@ Flink 的 checkpoint 机制会和持久化存储进行交互,读写流与状
## 开启与配置 Checkpoint
Review comment:
```suggestion
<a name="enabling-and-configuring-checkpointing"></a>
## 开启与配置 Checkpoint
```
It would be better to keep corresponding link tag for section subheading in
the rest of the page.
##########
File path: docs/content.zh/docs/dev/datastream/fault-tolerance/checkpointing.md
##########
@@ -43,34 +43,40 @@ Flink 的 checkpoint 机制会和持久化存储进行交互,读写流与状
## 开启与配置 Checkpoint
-默认情况下 checkpoint 是禁用的。通过调用 `StreamExecutionEnvironment` 的
`enableCheckpointing(n)` 来启用 checkpoint,里面的 *n* 是进行 checkpoint 的间隔,单位毫秒。
+默认情况下 checkpoint 是禁用的。通过调用 `StreamExecutionEnvironment` 的
`enableCheckpointing(n)` 来启用 checkpoint,其中 *n* 表示 [checkpoint 时间间隔]({{< ref
"docs/ops/production_ready#choose-the-right-checkpoint-interval" >}}),单位毫秒。
Checkpoint 其他的属性包括:
- - *精确一次(exactly-once)对比至少一次(at-least-once)*:你可以选择向 `enableCheckpointing(long
interval, CheckpointingMode mode)` 方法中传入一个模式来选择使用两种保证等级中的哪一种。
+ - *checkpoint 存储(storage)*:用户可以设置 checkpoint 快照持久化的位置。 默认情况下,Flink 会存储在
JobManager 的堆中。在生产环境中,建议改用持久化的文件系统。 请参考 [checkpoint 存储]({{< ref
"docs/ops/state/checkpoints#checkpoint-storage" >}}) 以获取有关作业级别和集群级别的可用配置的更多详细信息。
+
+ - *精确一次(exactly-once)对比至少一次(at-least-once)*:你可以选择向 `enableCheckpointing(n)`
方法中传入一个模式来选择使用两种保证等级中的哪一种。
Review comment:
```suggestion
- *精确一次(exactly-once)对比至少一次(at-least-once)*:你可以选择向
`enableCheckpointing(n)` 方法中传入一个模式来选择使用两种语义中的哪一种。
```
##########
File path: docs/content.zh/docs/dev/datastream/fault-tolerance/checkpointing.md
##########
@@ -43,34 +43,40 @@ Flink 的 checkpoint 机制会和持久化存储进行交互,读写流与状
## 开启与配置 Checkpoint
-默认情况下 checkpoint 是禁用的。通过调用 `StreamExecutionEnvironment` 的
`enableCheckpointing(n)` 来启用 checkpoint,里面的 *n* 是进行 checkpoint 的间隔,单位毫秒。
+默认情况下 checkpoint 是禁用的。通过调用 `StreamExecutionEnvironment` 的
`enableCheckpointing(n)` 来启用 checkpoint,其中 *n* 表示 [checkpoint 时间间隔]({{< ref
"docs/ops/production_ready#choose-the-right-checkpoint-interval" >}}),单位毫秒。
Checkpoint 其他的属性包括:
- - *精确一次(exactly-once)对比至少一次(at-least-once)*:你可以选择向 `enableCheckpointing(long
interval, CheckpointingMode mode)` 方法中传入一个模式来选择使用两种保证等级中的哪一种。
+ - *checkpoint 存储(storage)*:用户可以设置 checkpoint 快照持久化的位置。 默认情况下,Flink 会存储在
JobManager 的堆中。在生产环境中,建议改用持久化的文件系统。 请参考 [checkpoint 存储]({{< ref
"docs/ops/state/checkpoints#checkpoint-storage" >}}) 以获取有关作业级别和集群级别的可用配置的更多详细信息。
+
+ - *精确一次(exactly-once)对比至少一次(at-least-once)*:你可以选择向 `enableCheckpointing(n)`
方法中传入一个模式来选择使用两种保证等级中的哪一种。
Review comment:
`enableCheckpointing(n)`->`enableCheckpointing(n, mode)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]