当前位置:网站首页>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
边栏推荐
- Test comparison of three domestic cloud databases
- 通过canvas获取视频第一帧封面图
- How does semaphore, a thread synchronization tool that uses an up counter, look like?
- Constructors and prototypes
- B. protocal has 7000eth assets in one week!
- What are the basic requirements for big data posts?
- Using annotation + interceptor to implement asynchronous execution
- Factory pattern pattern pattern (simple factory, factory method, abstract factory pattern)
- The vowels in the inverted string of leetcode
- When we talk about data quality, what are we talking about?
猜你喜欢

程序员都应该知道的URI,一文帮你全面了解

Salesforce connect & external object

APReLU:跨界应用,用于机器故障检测的自适应ReLU | IEEE TIE 2020

How to make scripts compatible with both Python 2 and python 3?

小议缓冲区溢出

Octave basic syntax

B. protocal has 7000eth assets in one week!

第五章编程

Table join

C / C + + Programming Notes: pointer! Understand pointer from memory, let you understand pointer completely
随机推荐
Copy on write collection -- copyonwritearraylist
国内三大云数据库测试对比
对象
Aprelu: cross border application, adaptive relu | IEEE tie 2020 for machine fault detection
Test comparison of three domestic cloud databases
用两个栈实现队列
Dynamic ReLU:微软推出提点神器,可能是最好的ReLU改进 | ECCV 2020
Flink's datasource Trilogy 3: customization
Computer network application layer
你有没有想过为什么交易和退款要拆开不同的表
使用容器存储表格数据
使用递增计数器的线程同步工具 —— 信号量,它的原理是什么样子的?
Queue with two stacks
Database design: paradigms and anti paradigms
C + + adjacency matrix
Using annotation + interceptor to implement asynchronous execution
Programmers should know the URI, a comprehensive understanding of the article
Chapter 5 programming
写时复制集合 —— CopyOnWriteArrayList
object