作者:马莹乐
爱可生研发团队成员,负责 mysql 中间件和数据库管理平台的测试。擅长找茬(测试技术爱好者),欢迎大家试用 dtle~
本文来源:原创投稿
*爱可生开源社区出品,原创内容未经授权不得随意使用,转载请联系小编并注明来源。
dtle 是一款爱可生 MySQL 开源数据传输中间件,此文简要介绍初步使用方法。
项目地址:https://github.com/actiontech/dtle
一、下载安装
环境说明:
-
准备三台主机,主机名分别为:node4、node5、node6
-
三台均为 agent,另将 node4 和 node5 作为 manager
1.1 下载
下载 dtle 最新的 release rpm 包
地址:https://github.com/actiontech/dtle/releases

dtle 安装包下载:
wget https://github.com/actiontech/dtle/releases/download/v2.19.11.0/dtle-2.19.11.0.x86_64.rpm
1.2 安装
安装步骤:
https://actiontech.github.io/dtle-docs-cn/4/4.0_installation.html

分别将 node4,node5 和 node6 的 dtle 安装完成。
1.3 启动 dtle
dtle 安装完成后,并未启动,需要先配置 dtle 的 conf 文件,再启动。
1.4 配置 dtle.conf
配置相关说明:
https://actiontech.github.io/dtle-docs-cn/4/4.1nodeconfiguration.html
dtle.conf 准备:以下配置文件替分别替换原有 dtle.conf(/opt/dtle/etc/dtle/dtle.conf)
node4 的 dtle.conf
# Setup data dir
data_dir = "/opt/dtle/data"
log_level = "DEBUG"
log_file = "/opt/dtle.log"
#log_to_stdout = true
bind_addr = "172.100.9.4"
# Modify our port to avoid a collision with server
ports {
http = 8190
}
# Enable the manager
manager {
enabled = true
# Self-elect, should be 3 or 5 for production,
# Addresses to attempt to join when the server starts.
join = [ "172.100.9.4","172.100.9.5" ]
}
# Enable the agent
agent {
enabled = true
managers = ["172.100.9.4:8191","172.100.9.5:8191"]
}
metric{
collection_interval = "15s"
publish_allocation_metrics = "true"
publish_node_metrics = "true"
}
addresses

本文详细介绍dtle数据传输中间件的安装配置与使用流程,包括环境搭建、job创建及源目标端数据迁移验证。
最低0.47元/天 解锁文章
216

被折叠的 条评论
为什么被折叠?



