当前位置:网站首页>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
边栏推荐
- How does semaphore, a thread synchronization tool that uses an up counter, look like?
- 六家公司CTO讲述曾经历的“宕机噩梦”
- 服务器性能监控神器nmon使用介绍
- How does pipedrive support quality publishing with 50 + deployments per day?
- Pipedrive如何在每天部署50+次的情况下支持质量发布?
- Constructors and prototypes
- 使用容器存储表格数据
- Factory pattern pattern pattern (simple factory, factory method, abstract factory pattern)
- 使用递增计数器的线程同步工具 —— 信号量,它的原理是什么样子的?
- 一堆代码忘了缩进?快捷方式教你无忧无虑!
猜你喜欢

A brief introduction of C code to open or close the firewall example

Swagger介绍和应用

The interface testing tool eolinker makes post request

Dynamic relu: Microsoft's refreshing device may be the best relu improvement | ECCV 2020

Linked blocking queue based on linked list

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

A few lines of code can easily transfer traceid across systems, so you don't have to worry about losing the log!

android开发中提示:requires permission android.permission write_settings解决方法

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

What are the basic requirements for big data posts?
随机推荐
实现图片的复制
Are there many Python application scenarios?
STC转STM32第一次开发
android开发中提示:requires permission android.permission write_settings解决方法
用两个栈实现队列
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!
如何将 PyTorch Lightning 模型部署到生产中
Test comparison of three domestic cloud databases
Introduction and application of swagger
通过canvas获取视频第一帧封面图
Five design patterns frequently used in development
Chapter 5 programming
The road of cloud computing - going to sea - small goal: Hello world from. Net 5.0 on AWS
Platform in architecture
What are the basic requirements for big data posts?
The interface testing tool eolinker makes post request
Have you ever thought about why the transaction and refund have to be split into different tables
Introduction to nmon
Web上的分享(Share)API