数据传输 | DTLE 3.20.09.0 来啦!

时间:2022-07-26
本文章向大家介绍数据传输 | DTLE 3.20.09.0 来啦!,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

3.20.09.0 版本

DTLE Release Notes

开源数据传输组件 DTLE 3.20.09.0 已于昨日发布。

一、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 运行。

二、新功能

翻译

1、新功能

本次版本升级,DTLE 带来了 复制延迟和内存使用的监控,具体细节请参考手册 3.4 & 3.11 章节。

  • 复制延迟的监控项
  • 内存使用的监控项

Prometheus 配置演示

使用 Prometheus 可直观查看监控项并记录历史值。

准备配置文件 less prometheus.yml:

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 运行 Prometheus:

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

Fixed

  • Use gencode instead of gob for incremental stage serialization Reduced CPU consumption and improved performance
  • Fix #523: handle uppercase in 'where' column