Takin icon indicating copy to clipboard operation
Takin copied to clipboard

设置的压测时长是2个小时,压测实况与压测报告当中的容量水位数据会出现前几十分钟缺失

Open huchunyong1987 opened this issue 3 years ago • 11 comments

压测概况当中的数据是正常: image 容量水位数据有缺失: image 看了一下influxdb的数据是正常。压测过程中,redis当中的数据也不是从压测开始到压测结束都有暂存。

huchunyong1987 avatar Dec 20 '21 08:12 huchunyong1987

多压测几次也是一样嘛?前面几十分钟的数据是缺失的?

xuehuilu avatar Dec 21 '21 00:12 xuehuilu

多压测几次也是一样嘛?前面几十分钟的数据是缺失的?

是的,都会有不同程度的数据丢失,前面几十分钟数据,在数据库t_report_machine表里的machine_tps_target_config字段里就是没有前面几十分钟的数据。另外,influxdb的数据是有的,但是redis里的takin:web:report:metric:key:{reportId}里也没有前面几十分钟的数据。

huchunyong1987 avatar Dec 21 '21 02:12 huchunyong1987

能看下influxdb中jmeter库中压测数据吗? String measurement = InfluxDBUtil.getMeasurement(sceneId, reportId, customerId); pressure_场景id_报告id_1 select time,avg_tps as avgTps from pressure_场景id_报告id_1 where transaction='all'

Hezhongqi avatar Dec 23 '21 10:12 Hezhongqi

代码在takin-cloud中 trace io.shulie.takin.cloud.biz.service.report.impl.ReportServiceImpl metric -n 5 --skipJDKMethod false

Hezhongqi avatar Dec 23 '21 10:12 Hezhongqi

可以看下这个数据是否也丢失

Hezhongqi avatar Dec 23 '21 10:12 Hezhongqi

能看下influxdb中jmeter库中压测数据吗? String measurement = InfluxDBUtil.getMeasurement(sceneId, reportId, customerId); pressure_场景id_报告id_1 select time,avg_tps as avgTps from pressure_场景id_报告id_1 where transaction='all'

test-db_jmeter-720.csv 以上就是有问题报告的influxdb当中的数据。

有问题的报告: image 有问题的报告的容量数据: image

huchunyong1987 avatar Dec 24 '21 07:12 huchunyong1987

感谢!我们测试复现了,后续发版解决后,通知您!

Hezhongqi avatar Dec 24 '21 07:12 Hezhongqi

watch io.shulie.takin.web.biz.service.report.impl.ReportDataCache listAllMetricsData '{params,returnObj,throwExp}' -n 5 -x 3

Hezhongqi avatar Dec 29 '21 03:12 Hezhongqi

image

Hezhongqi avatar Dec 29 '21 03:12 Hezhongqi

需要增加排序

Hezhongqi avatar Dec 29 '21 03:12 Hezhongqi

我试一下看看

huchunyong1987 avatar Jan 10 '22 02:01 huchunyong1987