Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content.zh/docs/ops/state/state_backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Flink 内置了以下这些开箱即用的 state backends :

HashMapStateBackend 的适用场景:

- 有较大 state,较长 window 和较大 key/value 状态的 Job。
- 所有的高可用场景
- 状态可以完全放入 TaskManager JVM 堆内存的 Job,需要快速的、基于内存的状态访问
Comment thread
Dennis-Mircea marked this conversation as resolved.
Outdated
- 对延迟敏感、希望避免每次状态访问都进行序列化/反序列化开销的 Job

建议同时将 [managed memory]({{< ref "docs/deployment/memory/mem_setup_tm" >}}#managed-memory) 设为0,以保证将最大限度的内存分配给 JVM 上的用户代码。

Expand Down
4 changes: 2 additions & 2 deletions docs/content/docs/ops/state/state_backends.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ that store the values, triggers, etc.

The HashMapStateBackend is encouraged for:

- Jobs with large state, long windows, large key/value states.
- All high-availability setups.
- Jobs whose state fits comfortably in the JVM heap of the TaskManagers, where fast, in-memory state access is the priority.
- Jobs with low-latency requirements that benefit from avoiding de-/serialization on every state access.
Comment thread
Dennis-Mircea marked this conversation as resolved.

It is also recommended to set [managed memory]({{< ref "docs/deployment/memory/mem_setup_tm" >}}#managed-memory) to zero.
This will ensure that the maximum amount of memory is allocated for user code on the JVM.
Expand Down