jianghang.loujh
|
5607444bad
|
merge from github and rebase
|
2025-07-28 14:38:10 +08:00 |
|
Sunxien®
|
6b7ddbbe92
|
fix(canal/prometheus): 修复延迟指标的缺陷 (#5426)
-【缺陷描述】
Admin控制台修改canal.properties配置后,Server自动进行重启,在Grafan上观测到同步实例的PUT/GET/ACK延迟居高不下。
-【原因定位】
源库心跳正常触发,MemoryStoreWithBuffer正常推进位点,profiling 正常统计,但是延迟指标依然是越来越来越高。Prometheus调用collect接口采集到的exec time时间始终是固定不变的。经debug排查到StoreCollector采集器内存hold的StoreMetricsHolder与CanalInstance实例中的引用已经不同啦,CanalIntance重启时已经被重建过一份新的实例,但是StoreMetricsHolder却没有保存到内存Hold中。原因是Map.putIfAbsent调用引起。
-【修复效果】
- 修复后,重启Server心跳正常推进,延迟瞬间降下来。梳理其他Collector代码都是调用Map.put,只有这里使用putIfAbsent可能是粗心导致吧。修复效果
|
2025-05-16 15:09:22 +08:00 |
|
zavakid
|
e7de8289cd
|
= code cleanup : modified inner class to 'static' if possible
|
2020-09-18 00:49:48 +08:00 |
|
zavakid
|
e7658879bc
|
= cold cleanup
* using lambda if possible (we are already building in Java8)
* using diamond when new generic instance
* remove used improt
|
2020-09-17 17:46:20 +08:00 |
|
agapple
|
b79af46054
|
merge code and fixed issue #2755 #2756 #2735 #2714 #2711 #2710 #2616 #2602 #2585 #2565 #2935 #2434 #2623 #2418 #2387
|
2020-08-22 13:07:24 +08:00 |
|
agapple
|
5e761e14fa
|
format
|
2020-02-28 13:15:27 +08:00 |
|
Chuanyi Li
|
6682c56b9f
|
Canal metrics group mode support.
|
2018-09-15 13:21:38 +08:00 |
|
Chuanyi Li
|
06275a46ed
|
Fix no data points while execTime exceeding current time of canal server.
|
2018-08-29 19:52:09 +08:00 |
|
Chuanyi Li
|
2784f33b52
|
Improve metrics.
|
2018-08-19 17:01:03 +08:00 |
|
Chuanyi Li
|
a6abe7fa82
|
Avoid 48 years delay at startup.
|
2018-08-17 19:55:08 +08:00 |
|
七锋
|
0131c3ad13
|
fixed merge code
|
2018-08-17 19:55:08 +08:00 |
|
七锋
|
cc31e2db7c
|
fixed docker build
|
2018-08-17 19:55:07 +08:00 |
|
Chuanyi Li
|
e8aee3a276
|
Configurable metrics server port.
|
2018-08-13 21:50:50 +08:00 |
|
Chuanyi Li
|
a3bf1d59e6
|
Add size label for store metrics.
|
2018-08-13 21:03:30 +08:00 |
|
Chuanyi Li
|
ec00792475
|
Enhance heartbeat, rowscount.
|
2018-08-09 23:54:53 +08:00 |
|
Chuanyi Li
|
d7bbb0d1a7
|
Reformat code.
|
2018-08-09 23:54:53 +08:00 |
|
Chuanyi Li
|
179afb0340
|
Canal metrics snapshot version.
|
2018-08-09 23:54:52 +08:00 |
|
Chuanyi Li L
|
fec9803aae
|
Refactor metrics code.
|
2018-08-09 23:54:00 +08:00 |
|
Chuanyi Li
|
75de57c102
|
Prometheus refactor.
|
2018-08-09 23:51:26 +08:00 |
|
Chuanyi Li L
|
2084b1fc37
|
Add listener to write.
|
2018-08-09 23:51:25 +08:00 |
|
Chuanyi Li
|
da5fb30191
|
canal server metrics refactor.
|
2018-08-09 23:45:38 +08:00 |
|
Chuanyi Li
|
c0a40499b0
|
Canal monitoring(prometheus module) snapshot version.
|
2018-07-29 14:55:38 +08:00 |
|