Bifrost Document

Version 1.6.x

Bifrost ---- A heterogeneous middleware which can synchronize MySQL binlog data To Redis,MongoDB,ClickHouse...

Configuration

Bifrost default config file : etc/Bifrost.ini


[user]
#userName=password
Bifrost=Bifrost123

[groups]
#userName=groupName
#administrator : add ,delete,update...
#monitor : only read
Bifrost=administrator
BifrostMonitor=monitor

[Bifrostd]
#默认会当前启动文件夹
#log_dir=/data/log/
#默认21036端口
listen=0.0.0.0:21036
#默认会当前创建$data_dir/data文件夹,权限为 700
data_dir=./
#默认启动文件夹下Bifrost.pid
#pid=/tmp/bifrost.pid

#设置同步给第三方服务的队列大小,默认5000
toserver_queue_size=5000

#通道队列的大小,默认1000
channel_queue_size=1000

#保存们点磁盘之前的缓存池桶池大小,<=0,则不开始 ,直接刷到leveldb,默认为50
key_cache_pool_size=50

#是否支持动态加plugin so 插件,默认为false
#这个参数只在 linux 下有效,其他平台全部为false
dynamic_plugin=false

#是否支持https
tls=true

#server.key 及 server.crt 相对于 Bifrost 的路径,也可以填绝对路径
tls_key_file=./etc/server.key
tls_crt_file=./etc/server.crt

#是否开启文件队列功能 true|false
file_queue_usable=true

#统计是否启文件队列的时间,单位毫秒
file_queue_usable_count_time_diff=5000

#file_queue_usable_count_time_diff 时间内内存队列被挤满的次数
file_queue_usable_count=10

#在没有数据的情况下,间隔多久提交一次插件,单位 秒(v1.4版本开始)
plugin_commit_timeout=5

#在同步出错的情况下,间隔多久重试 ,单位 秒
plugin_retry_sync_time=1

#用于性能测试
#key是界面添加的DBName
#mysql-bin.000015,107175  位点信息
#假如配置了这个值,则启动的时候,会强制使用这个位点,包括所有配置的toseverlist. 
[PerformanceTesting]
myTest=mysql-bin.000015,107175

Notes

Users and groups are valid only after the first startup initialization.

After the user name is added and modified online, the user name and password of the configuration file will not be modified

Last updated on 1 Nov 2020
Published on 1 Nov 2020
Edit on GitHub