Flink provides different state backends that specify how and where state is stored.
Flink提供不同的状态后端,指定如何和在何处存储状态。
State can be located on Java’s heap or off-heap. Depending on your state backend, Flink can also manage the state for the application, meaning Flink deals with the memory management (possibly spilling to disk if necessary) to allow applications to hold very large state. By default, the configuration file _flink-conf.yaml_ determines the state backend for all Flink jobs.
However, the default state backend can be overridden on a per-job basis, as shown below.
但是,可以在每个作业的基础上重写默认状态后端,如下所示。
For more information about the available state backends, their advantages, limitations, and configuration parameters see the corresponding section in [Deployment & Operations](//ci.apache.org/projects/flink/flink-docs-release-1.7/ops/state/state_backends.html).