当前位置:网站首页>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
边栏推荐
- Python应用场景多不多?
- Esockettimeout solution in request in nodejs
- Queue with two stacks
- Octave basic syntax
- A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!
- Introduction and application of swagger
- Aprelu: cross border application, adaptive relu | IEEE tie 2020 for machine fault detection
- Teacher Liang's small class
- 文件拷贝的实现
- 基于链表的有界阻塞队列 —— LinkedBlockingQueue
猜你喜欢

B. protocal has 7000eth assets in one week!

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

Database design: paradigms and anti paradigms

为什么需要使用API管理平台

Aprelu: cross border application, adaptive relu | IEEE tie 2020 for machine fault detection

理论与实践相结合彻底理解CORS

非阻塞的无界线程安全队列 —— ConcurrentLinkedQueue

Realization of file copy

Constructors and prototypes

服务器性能监控神器nmon使用介绍
随机推荐
Salesforce connect & external object
第五章编程
android开发中提示:requires permission android.permission write_settings解决方法
14. Introduction to kubenetes
Why need to use API management platform
【200人面试经验】,程序员面试,常见面试题解析
Concurrent linked queue: a non blocking unbounded thread safe queue
大数据岗位基础要求有哪些?
Programmers should know the URI, a comprehensive understanding of the article
小议缓冲区溢出
Teacher Liang's small class
What are the basic requirements for big data posts?
一堆代码忘了缩进?快捷方式教你无忧无虑!
通过canvas获取视频第一帧封面图
如何通过Sidecar自定义资源减少Istio代理资源消耗
API生命周期的5个阶段
STC转STM32第一次开发
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!
How to get started with rabbitmq
链表