一、DTLE 项目介绍
爱可生开源社区的 DTLE ,自开源起一直定位于一款针对 MySQL 使用特点、支持多种使用场景的数据传输组件,希望能够解决当前 MySQL 应用中保障数据传输质量、能够适配复杂场景、提供多样功能的问题。
DTLE 获取
版本库:https://github.com/actiontech/dtle
文档:https://actiontech.github.io/dtle-docs-cn/
发布信息:https://github.com/actiontech/dtle/releases
Tips:建议下载最新的 Releases 版本。RH/Centos 等下载 rpm 安装包,一般 linux下载 tar 包,或使用 docker 运行。
二、新功能
复制延迟的监控项
内存使用的监控项
使用 docker 运行 Prometheus:scrape_configs:
- job_name: 'dtle'
# Override the global default and scrape targets from this job every 5 seconds.
scrape_interval: 5s
static_configs:
- targets: ['127.0.0.1:8190','127.0.0.2:8190'] # 填写dtle兼容层的地址。可填多个。
docker run \ -p 9090:9090 \ -v ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml \ prom/prometheus然后浏览器访问 http://127.0.0.1:9090,并查询(Prometheus 提供补全)需要的监控项。具体细节请参考手册 3.4 & 3.11 章节:
- https://actiontech.github.io/dtle-docs-cn/3/3.4_metrics.html
- https://actiontech.github.io/dtle-docs-cn/3/3.11_delay.html
2、修正
替换增量序列换库
降低 CPU 使用,提升性能
处理含有大写字母的 'where' 列(# 523)
Release Notes
New
Metrics for delay
Metrics for memory
Use gencode instead of gob for incremental stage serialization
Reduced CPU consumption and improved performance
Fix #523: handle uppercase in 'where' column