为提高效率,请提供以下信息,问题描述清晰能够更快得到解决:
【TiDB 版本】
tidb v5.1.0 tidb配置8C16G
【概述】 场景 + 问题概述
每次手动analyze大表后会导致tidb down掉,表数据量50亿rows左右
【背景】 做过哪些操作
删除旧索引后,发现执行计划没有选择最优索引,所以尝试手动analyze
【现象】 业务和数据库现象
tidb down掉
【附件】 相关日志及配置信息
tidb.log
[2021/12/13 16:49:03.670 +08:00] [WARN] [grpclogger.go:85] [“grpc: Server.Serve failed to create ServerTransport: connection error: desc = “transport: http2Server.HandleStreams failed to receive the preface from client: EOF””] [system=grpc] [grpc_log=true]
[2021/12/13 16:49:03.970 +08:00] [WARN] [memory_usage_alarm.go:139] [“tidb-server has the risk of OOM. Running SQLs and heap profile will be recorded in record path”] [“is server-memory-quota set”=false] [“system memory total”=17179869184] [“system memory usage”=14578753536] [“tidb-server memory usage”=9328578696] [memory-usage-alarm-ratio=0.8] [“record path”="/export/temp/0_tidb/MC4wLjAuMDo0MDAwLzAuMC4wLjA6MTAwODA=/tmp-storage/record"]
[2021/12/13 16:49:04.563 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=46.510589ms]
[2021/12/13 16:49:04.564 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=33.113369ms]
[2021/12/13 16:49:04.564 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=32.193579ms]
[2021/12/13 16:49:04.565 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=31.223144ms]
[2021/12/13 16:49:04.597 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=43.983743ms]
[2021/12/13 16:49:04.895 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=60.1678ms]
[2021/12/13 16:49:05.097 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=62.183869ms]
[2021/12/13 16:49:05.099 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=44.85017ms]
[2021/12/13 16:49:05.177 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=35.951316ms]
[2021/12/13 16:49:05.179 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=31.821064ms]
[2021/12/13 16:49:05.180 +08:00] [WARN] [pd.go:131] [“get timestamp too slow”] [“cost time”=32.478411ms]
goroutine2021-12-13T16_49_03 08_00 (1.2 MB) heap2021-12-13T16_49_03 08_00 (1.1 MB) running_sql2021-12-13T16_49_03 08_00 (494 字节)