当前位置:网站首页>Flink's fault tolerance mechanism (checkpoint)
Flink's fault tolerance mechanism (checkpoint)
2022-07-27 00:59:00 【A photographer who can't play is not a good programmer】
Flink Reliability cornerstone of -Checkpoint Fault tolerance mechanism
1. summary
flink Of checkpoint The mechanism can guarantee Flink When an operator fails for some reason in the whole cluster , It can restore the state of the whole application flow graph to a certain state before the failure , Ensure the state consistency of the application flow graph .Flink Of Checkpoint Mechanism principle from “Chandy-Lamport algorithm” Algorithm .
2. principle
Every need Checkpoint At startup ,Flink Of JobManager Create a CheckpointCoordinator( Checkpoint Coordinator ),CheckpointCoordination Take full responsibility for the snapshot of this application .
The process :

(1)CheckpointCoordinator( Checkpoint Coordinator ) Periodically apply all source Operator sending barrier( barrier ).
(2) When a source Operator receives a barrier when , Data processing is suspended , Then make a snapshot of your current state , And save to the specified persistent storage , Finally to CheckpointCoordinator Report on your snapshot production , At the same time broadcast to all its downstream operators barrier, Recovery data processing
(3) Downstream operator received barrier after , Will pause its own data processing , Then make a snapshot of the relevant state , And save to the specified persistent storage , Finally to CheckpointCoordinator Report on your own snapshot , At the same time broadcast to all its downstream operators barrier, Recovery data processing .
(4) Each operator follows the steps 3 Continuous snapshot and broadcast to downstream , Until the last barrier Pass on to sink operator , Snapshot completed .
(5) When CheckpointCoordinator After receiving the report of all operators , Consider that the snapshot of this cycle is made successfully ; otherwise , If you don't receive all operator reports within the specified time , The snapshot of this cycle is considered to be failed .
3.Flink Of Checkpoint And Spark Compared with ,Flink Is there any difference or advantage ?
Spark Streaming Of Checkpoint Only for Driver The recovery of data and metadata is done Checkpoint. and Flink Of Checkpoint The mechanism is much more complicated , It uses lightweight distributed snapshots , The snapshot of each operator is implemented , And a snapshot of the data in the flow .
边栏推荐
- [b01lers2020]Welcome to Earth
- 哪个证券公司开户股票佣金低,哪个股票开户安全
- 基于Flink实时计算Demo—关于用户行为的数据分析
- Programmers must do 50 questions
- [CTF攻防世界] WEB区 关于Cookie的题目
- Solve the problem that there is no ado.net entity data model in vs
- C # conversion of basic data types for entry
- Only hard work, hard work and hard work are the only way out C - patient entity class
- 2022.7.9DAY601
- [SQL注入] 报错注入
猜你喜欢
![[CISCN2019 总决赛 Day2 Web1]Easyweb](/img/36/1ca4b6cae4e0dda0916b511d4bcd9f.png)
[CISCN2019 总决赛 Day2 Web1]Easyweb

el-checkbox中的checked勾选状态问题 2021-08-02

logback自定义MessageConverter
![[问题]yum资源被占用怎么办](/img/8d/50129fa1b1ef0aa0e968e6e6f20969.png)
[问题]yum资源被占用怎么办

JSCORE day_ 05(7.6)

Solve the problem of direct blue screen restart when VMware Workstation virtual machine starts
![[By Pass] WAF 的绕过方式](/img/dd/7204b2401a9f18c02c8b9897258905.png)
[By Pass] WAF 的绕过方式

CUDA version difference between NVIDIA SMI and nvcc -v
![[HarekazeCTF2019]encode_and_encode](/img/f5/c06523a1764717bdf2d91f069c9d77.png)
[HarekazeCTF2019]encode_and_encode

Logback custom messageconverter
随机推荐
flink需求之—ProcessFunction(需求:如果30秒内温度连续上升就报警)
JSCORE day_ 01(6.30) RegExp 、 Function
MySQL索引优化:哪些情况下需要建立索引(适合构建索引的几种情况)
Essay - I say you are so cute
当事务遇上分布式锁
Flink 1.15实现 Sql 脚本从savepointh恢复数据
[HFCTF2020]EasyLogin
[HFCTF2020]EasyLogin
[interview: concurrent Article 16: multithreading: detailed explanation of wait/notify] principle and wrong usage (false wake-up, etc.)
el-checkbox中的checked勾选状态问题 2021-08-02
MySQL第一篇
SparkSql之编程方式
(Spark调优~)算子的合理选择
Neo4j基础指南(安装,节点和关系数据导入,数据查询)
DOM day_ 04 (7.12) BOM, open new page (delayed opening), address bar operation, browser information reading, historical operation
MySQL索引优化:索引失效以及不适合建立索引的场景
[CTF攻防世界] WEB区 关于Cookie的题目
MYSQL数据库事务的隔离级别(详解)
[CISCN2019 华北赛区 Day1 Web2]ikun
2022.7.9DAY601