Skip to content

Releases: housepower/clickhouse_sinker

v3.2.0

31 Mar 10:28

Choose a tag to compare

发布说明

新功能

  • 新增IPV4和IPV6类型的支持
  • 移除多任务根据lag做assgin的复杂逻辑,需要显式打开rebalanceByLags 开关才能使用该功能
  • 支持异步插入
  • 支持ClickHouse集群发现功能,当ClickHouse集群发生了扩容或者缩容,sinker能动态感知到,并自动调整节点配置,无需人工修改配置重启任务;该功能为实验性质,需要通过 discovery.enabled: true开启
    {
        "discovery":{
            "enabled": true,
            "checkInterval": 60
        }
    }

优化项

  • 增加kafka 高级配置,避免频繁rebalance导致不工作
    {
        "kafka":{
            "properties":{
                "heartbeat.interval.ms": 3000,
                "session.timeout.ms": 120000,
                "rebalance.timeout.ms": 120000,
                "request.timeout.ms": 60000
            }
        }
    }
  • clickhouse client 默认开启lz4压缩
  • 增加 recordPoolSize 用来优化内存占用
  • 动态列加列时使用 aleter_sync = 0, 转为异步执行
  • 如果 http-port没有指定,禁用http功能,避免安全漏洞
  • 第一次运行时,随机选择副本,而不是每次都选择第一个
  • 当每次发现新列时,不重启consumer,减少rebalance的次数
  • 增加 ClickHouse客户端参数readTimeout配置,防止大sql运行超时
  • kafka增加 max.poll.interval.ms参数,当长时间没有消费消费者组时,主动脱离该消费者组
  • 所有错误码均会切换节点重试,防止报错任务卡住

缺陷修复

  • 当指定http-port时,同一台机器运行多个示例会报错的问题
  • 修改动态列会多次重复运行相同的sql的问题
  • sinker配置多个任务,当其中一个任务初始化失败,后续任务都不能运行的问题
  • 新加标签时,如果series为空,该标签不能添加到__labels__字段中的问题
  • Cannot convert NULL value to non-Nullable type导致任务卡住无法继续的问题

v3.1.8

08 Jun 09:37

Choose a tag to compare

What's Changed

Full Changelog: v3.1.6...v3.1.8

v3.1.6

08 Apr 10:14

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.6...v3.1.6

v3.0.6

06 Jun 10:51

Choose a tag to compare

Changelog

  • be49fcf Allow writing non-numeric metric
  • 57bf7e7 update logical cluster table schema when idenfying new columns

v3.0.5

06 Jun 10:50

Choose a tag to compare

Changelog

  • b786986 Add a new http endpoint /debug/vars for viewing contents of seriesMap
  • 05af994 Automatically end sinker if it remains inactive in last 10 mins
  • 605533f chore - add test file for TestJksToPem
  • 7b0e833 chore - no more input when context canceled
  • 8125e26 chore - update the makefile to calculate case coverage
  • 10dad19 feat - two new properties to manage reloading of bmseriesMap

v3.0.3

06 Jun 10:50

Choose a tag to compare

Changelog

  • 0b28e44 fix - avoid program running into stuck when facing fatalpanic
  • 40a5f67 perf - avoid creating kafka client everytime when caculate lags

v3.0.2

06 Jun 10:47

Choose a tag to compare

Changelog

  • 55c6db0 Combine nacos log into sinker log
  • 180029f calculate topic lags every 10 seconds
  • 685f94c fix clickhouse acquire conn timeout issue
  • 45afaf3 make lint happy
  • 57d39c4 reload bmseries every day to offload out-of-date record
  • f4eb186 update dmseries quota map when applying new config, retry query when facing ErrAcquireConnTimeout error
  • 595df6d update the systest script to cover the blacklist&whitelist

v3.0.1

06 Jun 10:46

Choose a tag to compare

Changelog

  • 187fea3 Create containers with initial size
  • 4751006 Exit immediately when receiving one more termination signal
  • f15f2cf Fix changing TimeUnit config property does not trigger config reload
  • 6dc62be Fix sinker crash because of illegal TimeZone issue & Decimal parsing error
  • 2b7874d Ignore the SIGHUP signal
  • 2af3853 Refine the error msg
  • d41eef1 feat - Limit the fetch size and poll size based on the BufferSize property
  • 07ec921 fix - Metrics from GoCollector and ProcessCollector are now being pushed to metric-push-gateway-addrs
  • 5837a98 remove the rowpool & rowspool, reduce the GLBWritingPool size to lower memory pressure

v3.0.0

06 Jun 10:44

Choose a tag to compare

Changelog

  • e34be13 Add support of ingesting multi-value metrics
  • 74821f1 Allow self-defined series table name
  • dfc271d Build up the Consumers map when normalizing the Config
  • faad076 Delete Quota when stopping corresponding tasks
  • 6a52833 Fix - invalid autocommit options specified when a group was not specified
  • 0a4add9 Group the tasks by consumerGroup property to reduce number of kafka client
  • a8befbc Offset shift should only be calculated once per task
  • ac3ce76 Update the doc and allow customization of DatabaseName in task level
  • 379f657 calculate the shard number based on message offset when shardingKey was not specified
  • b452c6d format hjson files
  • d15caf7 restart the consumergroup when facing offset commit error

v2.6.8

10 Dec 02:03
ecb59e0

Choose a tag to compare

Changelog

  • ecb59e0 Merge pull request #169 from genzgd/ssl_fixes
  • 932f50c Small updates to allow TLS connections for AWS MSK, etc.
  • 8fab1c3 feat: Add clickhouse Map type support
  • 827b20b fix ClickHouse.Init goroutine leak
  • e12a7b4 systest pass