当前位置:网站首页>Flink 状态与容错 ( state 和 Fault Tolerance)
Flink 状态与容错 ( state 和 Fault Tolerance)
2022-08-05 05:14:00 【bigdata1024】
Flink 状态与容错
状态性的函数和操作通过处理单个(元素/事件)存储数据,使任何类型的state构建更复杂的操作。
例如:
- 当应用程序针对特定事件模式进行搜索的时候,state将会存储到目前为止的一些列事件。
- 当每 分钟/小时/天 聚合事件的时候,state会持有所有等待聚合的数据。
- 当在一连串的数据流上训练机器学习模型时,state持有当前版本的模型参数。
- 当历史数据需要管理的时候,state允许高效的访问过去的数据
flink可以使用checkpoints对statue进行容错管理,并且允许对流应用程序执行savepoint。
了解到应用程序的state可以重新调节,意味着flink负责重新分配并行实例的状态。
Flink的queryable state允许你在flink运行时从外部接收state数据。
在工作的时候使用state,建议阅读Flink's state backends。flink提供了不同的state backends 来指定如何存储和把state数据存储在哪。State可以存在于java堆中。依赖于你的state backends,flink还可以管理应用程序的状态,意味着flink可以通过内存管理(必要时可以溢出到磁盘)来运行应用保存非常大的state。state backends 可以在不改变应用程序的逻辑的情况下进行配置。
后面会有对应的专题文章解释下面的内容
- working with state:在flink应用中展示了如何使用state,并解释了不同类型的状态
- checkpointing:描述了如何启动和配置容错的检查点
- queryable state:解释如何在运行时访问flink以外的state
- custom serialization for managed state:讨论了state的自定义序列化逻辑和它的升级

边栏推荐
- BFC(Block Formatting Context)
- 【过一下15】学习 lstm的一周
- [Let's pass 14] A day in the study room
- 02.01-----参数的引用的作用“ & ”
- Mysql5.7 二进制 部署
- Difference between for..in and for..of
- 第三讲 Gradient Tutorial梯度下降与随机梯度下降
- 解决端口占用问题
- The mall background management system based on Web design and implementation
- "PHP8 Beginner's Guide" A brief introduction to PHP
猜你喜欢

【After a while 6】Machine vision video 【After a while 2 was squeezed out】

Matplotlib(二)—— 子图

类的底层机制

第四讲 反向传播随笔

Convert the paper official seal in the form of a photo into an electronic official seal (no need to download ps)

Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
![[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)](/img/86/9c9a2541f2b7089ae47e9832fffdb3.png)
[Student Graduation Project] Design and Implementation of the Website Based on the Web Student Information Management System (13 pages)

Mesos学习

Lecture 4 Backpropagation Essays

Using pip to install third-party libraries in Pycharm fails to install: "Non-zero exit code (2)" solution
随机推荐
Error creating bean with name 'configDataContextRefresher' defined in class path resource
机器学习(二) —— 机器学习基础
机器学习(一) —— 机器学习基础
【过一下4】09-10_经典网络解析
将照片形式的纸质公章转化为电子公章(不需要下载ps)
有用番茄来监督自己的同道中人吗?加一下我的自习室,一起加油
【过一下11】随机森林和特征工程
Distributed systems revisited: there will never be a perfect consistency scheme...
1.3 mysql batch insert data
Pycharm中使用pip安装第三方库安装失败:“Non-zero exit code (2)“的解决方法
Convert the paper official seal in the form of a photo into an electronic official seal (no need to download ps)
Algorithms - ones and zeros (Kotlin)
DOM and its applications
小白一枚各位大牛轻虐虐
实现跨域的几种方式
Structured light 3D reconstruction (1) Striped structured light 3D reconstruction
CAP+BASE
RL强化学习总结(一)
【Over 16】Looking back at July
Matplotlib(二)—— 子图