当前位置:网站首页>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的自定义序列化逻辑和它的升级

边栏推荐
- Flex layout frog game clearance strategy
- Matplotlib(三)—— 实践
- "PHP8 Beginner's Guide" A brief introduction to PHP
- redis复制机制
- redis cache clearing strategy
- 【记一下1】2022年6月29日 哥和弟 双重痛苦
- What field type of MySQL database table has the largest storage length?
- Multi-threaded query results, add List collection
- "Recursion" recursion concept and typical examples
- 【过一下9】卷积
猜你喜欢

NodeJs接收上传文件并自定义保存路径

Algorithms - ones and zeros (Kotlin)

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

Reverse theory knowledge 4

第二讲 Linear Model 线性模型
![[Go through 3] Convolution & Image Noise & Edge & Texture](/img/7b/2214020cadf06d9211fd40fb5f1b63.png)
[Go through 3] Convolution & Image Noise & Edge & Texture

【After a while 6】Machine vision video 【After a while 2 was squeezed out】
![LeetCode: 1403. Minimum subsequence in non-increasing order [greedy]](/img/99/41629dcd84e95eb3672d0555d6ef2c.png)
LeetCode: 1403. Minimum subsequence in non-increasing order [greedy]

【过一下10】sklearn使用记录

Pandas(五)—— 分类数据、读取数据库
随机推荐
Wise Force Deleter强制删除工具
phone call function
机器学习(二) —— 机器学习基础
Matplotlib(一)—— 基础
【Over 16】Looking back at July
day12函数进阶作业
day9-字符串作业
Geek卸载工具
学习总结week2_1
redis persistence
02.01-----参数的引用的作用“ & ”
[WeChat applet] WXML template syntax - conditional rendering
coppercam primer [6]
The underlying mechanism of the class
【过一下14】自习室的一天
【Untitled】
What are the characteristics of the interface of the physical layer?What does each contain?
2022牛客多校第四场C.Easy Counting Problem(EGF+NTT)
day11-函数作业
RL强化学习总结(一)