tikv响应很慢

[2023/09/18 17:36:36.350 +08:00] [INFO] [scheduler.rs:742] [“get snapshot failed”] [err=“Error(Request(message: "region 5005 is missing" region_not_found { region_id: 5005 }))”] [cid=16386]

tikv响应慢,报这个错误,大佬帮忙看下是什么问题,会影响tikv响应吗?

什么版本?
配置怎么样?
有没有做了什么操作?

数据丢失了?

版本:6.5.0版本
配置:

WARNING: This file is auto-generated. Do not edit! All your modification will be overwritten!

You can use ‘tiup cluster edit-config’ and ‘tiup cluster reload’ to update the configuration

All configuration items you want to change can be added to:

server_configs:

tikv:

aa.b1.c3: value

aa.b2.c4: value

[security]
ca-path = “/usr/local/xxxx/tikv-22222/tls/ca.crt”
cert-allowed-cn = [“xx.xx”, “xx.xx”]
cert-path = “/usr/local/xxxx/tikv-22222/tls/tikv.crt”
key-path = “/usr/local/xxxx/tikv-22222/tls/tikv.pem”

[storage]
api-version = 2
enable-ttl = true

没有做任何操作,跑一段时间就响应慢了

pd-ctl看下region5005的状态

INFO级别的忽略就行,不算报错

[sst_importer.rs:442] [“shrink cache by tick”] [“retain size”=0] [“shrink size”=0]
这个又是提示什么,会影响响应时间吗?

响应时间慢,看下grafana上tikv相关的监控啊

1 个赞

好像数据丢失了哦

慢的时间点,监控数据走一波

region miss不要太常见。region miss的告警,我当初都屏蔽过一段时间。
那个时候我为了防止写入热点,做了很多region预分列。可能region被我分太细,然后导入又没开始,这些空region有频繁的调度。