当前位置:网站首页>Bifrost 之 文件队列(一)
Bifrost 之 文件队列(一)
2020-11-09 00:28:00 【布哦】
为了解决表同步设置并行同步,共用一个Binlog解析线程,因为某一个同步出错等原因造成的 Binlog 解析阻塞的情况.
在 Bifrost v1.2.1 版本开始 , Bifrost 新增了一个文件队列功能,在表同步出现阻塞的时候,自动启动文件队列,并不影响 Binlog 解析,也不影响其他表数据同步。
简单的说 只要所有同步都足够快的时候, 就用的纯内存队列,只要有一个同步出错了,为了保证自己出错,不影响 其他表同步,当前同步线程,就自动启用的一个文件队列.
文件队列,是在同步出现问题,跟不上Binlog解析速度的时候 ,自动启动的,不需要人为界面点击启动.当前 管理系统界面 点提供了方法 让用户点击强制启动!
文件队列配置
#是否开启文件队列功能 true|false
file_queue_usable=true
#统计是否启文件队列的时间,单位毫秒
file_queue_usable_count_time_diff=5000
#file_queue_usable_count_time_diff 时间内内存队列被挤满的次数
file_queue_usable_count=10
假如配置 file_queue_usable = false ,不管什么情况,都不会启用文件队列
默认情况下,文件队列是在 5000ms 内 内存队列连续被写满10次,自动启动,不需要人为在管理界面任何操作
文件队列,是按表的同步配置为单位启动的,也就是说,假如一个表配置了 10 个同步, 其中第一个配置同步是同步到 Redis, 在这个同步到 Redis 的同步中同步慢了,出现了内存队列阻塞的情况下,则启用一个文件队列,用于缓冲 同步到当前这个表同步到 Redis
版权声明
本文为[布哦]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4233862/blog/4708421
边栏推荐
- 如何将 PyTorch Lightning 模型部署到生产中
- AI人工智能编程培训学什么课程?
- App crashed inexplicably. At first, it thought it was the case of the name in the header. Finally, it was found that it was the fault of the container!
- Copy the picture
- Fiddler can't grab requests from browsers like Google_ Solution
- 使用递增计数器的线程同步工具 —— 信号量,它的原理是什么样子的?
- AQS 都看完了,Condition 原理可不能少!
- 计算机网络 应用层
- 基于链表的有界阻塞队列 —— LinkedBlockingQueue
- 大数据岗位基础要求有哪些?
猜你喜欢

实现图片的复制

大数据岗位基础要求有哪些?

架构中台图

AQS 都看完了,Condition 原理可不能少!

APP 莫名崩溃,开始以为是 Header 中 name 大小写的锅,最后发现原来是容器的错!

Test comparison of three domestic cloud databases

Tips in Android Development: requires permission android.permission write_ Settings solution

上线1周,B.Protocal已有7000ETH资产!

Brief introduction of Integrated Architecture

SQL语句的执行
随机推荐
VIM 入门手册, (VS Code)
C++邻接矩阵
Using containers to store table data
分库分表的几种常见玩法及如何解决跨库查询等问题
Linked list
Flink的DataSource三部曲之三:自定义
你有没有想过为什么交易和退款要拆开不同的表
非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue
Programmers should know the URI, a comprehensive understanding of the article
Esockettimeout solution in request in nodejs
SaaS: another manifestation of platform commercialization capability
如何让脚本同时兼容Python2和Python3?
[200 interview experience], programmer interview, common interview questions analysis
Linked blocking queue based on linked list
Salesforce connect & external object
Programmers should know the URI, a comprehensive understanding of the article
Swagger介绍和应用
Realization of file copy
A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!
Tips in Android Development: requires permission android.permission write_ Settings solution