infoverload commented on a change in pull request #16177:
URL: https://github.com/apache/flink/pull/16177#discussion_r658864082
##########
File path: docs/content.zh/docs/dev/datastream/fault-tolerance/state.md
##########
@@ -561,6 +561,17 @@ val counts: DataStream[(String, Int)] = stream
})
```
+### 跟踪 keyed state 的访问延迟
+
+Flink also allows to track the keyed state access latency for all
state-backends. This feature is disabled by default.
+To enable this feature you must set the
`state.backend.latency-track.keyed-state-enabled` as true in the [Flink
configuration]({{< ref "docs/deployment/config"
>}}#state-backends-latency-tracking-options).
+
+Once tracking keyed state access latency is enabled, Flink will sample the
state access latency every `N` access, in which `N` is defined by
`state.backend.latency-track.sample-interval`.
+This configuration has the default value as 128, and a smaller value will get
more accurate result but higher performance impact as sampled more frequently.
Review comment:
**same for English version**
##########
File path: docs/content.zh/docs/ops/metrics.md
##########
@@ -1642,7 +1642,7 @@ logged by `SystemResourcesMetricsInitializer` during the
startup.
</tbody>
</table>
-## Latency tracking
+## End-to-End record travelling latency tracking
Flink allows to track the latency of records travelling through the system.
This feature is disabled by default.
Review comment:
**same for English version**
--
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]