1.开启落盘支持
2.开启资源管控
3.日志如下,感觉像是PD死了
pd日志
[2024/12/30 23:02:32.286 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:35.734 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:36.174 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a1e0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:39.253 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:40.142 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:43.666 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:47.535 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:48.508 +08:00] [INFO] [client.go:210] ["Auto sync endpoints failed."] [error="context deadline exceeded"]
[2024/12/30 23:02:49.321 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:49.832 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a1e0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:50.156 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:02:57.116 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:01.473 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a1e0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:04.256 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:13.216 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc00323e000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:10.745 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:11.438 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc002a461e0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:13.949 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:14.030 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:16.707 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:19.849 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a1e0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:36.173 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:38.574 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:39.093 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:37.749 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a1e0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:39.564 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:39.804 +08:00] [INFO] [client.go:210] ["Auto sync endpoints failed."] [error="context deadline exceeded"]
[2024/12/30 23:03:40.532 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:47.322 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc00323e000/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
[2024/12/30 23:03:47.549 +08:00] [WARN] [retry_interceptor.go:63] ["retrying of unary invoker failed"] [target=etcd-endpoints://0xc004b1a3c0/127.0.0.1:2379] [attempt=0] [error="rpc error: code = DeadlineExceeded desc = context deadline exceeded"]
kv的日志很多,感觉相关的如下
[2024/12/30 23:03:46.094 +08:00] [INFO] [service.rs:70] ["pd meta client creating watch stream."] [rev=102864810] [path=resource_group/settings] [thread_id=18]
[2024/12/30 23:03:46.241 +08:00] [WARN] [client.rs:155] ["failed to update PD client"] [error="Other(\"[components/pd_client/src/util.rs:377]: cancel reconnection due to too small interval\")"] [thread_id=12]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [service.rs:97] ["failed to watch resource groups"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=18]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:Grpc] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=171]
[2024/12/30 23:03:46.248 +08:00] [ERROR] [pd.rs:1352] ["store heartbeat failed"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=34]
[2024/12/30 23:03:46.258 +08:00] [WARN] [pd.rs:1785] ["report min resolved_ts failed"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=34]
[2024/12/30 23:03:46.494 +08:00] [WARN] [client.rs:155] ["failed to update PD client"] [error="Other(\"[components/pd_client/src/util.rs:377]: cancel reconnection due to too small interval\")"] [thread_id=12]
[2024/12/30 23:03:46.543 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.543 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.543 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.543 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.637 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:Grpc] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=134]
[2024/12/30 23:03:46.648 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:Grpc] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=132]
[2024/12/30 23:03:46.649 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.674 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:46.764 +08:00] [INFO] [util.rs:639] ["connecting to PD endpoint"] [endpoints=http://127.0.0.1:2379] [thread_id=12]
[2024/12/30 23:03:46.936 +08:00] [WARN] [pd.rs:1785] ["report min resolved_ts failed"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=34]
[2024/12/30 23:03:47.329 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.393 +08:00] [INFO] [service.rs:70] ["pd meta client creating watch stream."] [rev=102864810] [path=resource_group/settings] [thread_id=18]
[2024/12/30 23:03:47.393 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.394 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.394 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.394 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.394 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:StreamDisconnect] [err="StreamDisconnect(SendError { kind: Disconnected })"] [thread_id=34]
[2024/12/30 23:03:47.408 +08:00] [ERROR] [service.rs:97] ["failed to watch resource groups"] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=17]
[2024/12/30 23:03:47.452 +08:00] [ERROR] [util.rs:497] ["request failed, retry"] [err_code=KV:Pd:Grpc] [err="Grpc(RpcFailure(RpcStatus { code: 14-UNAVAILABLE, message: \"not leader\", details: [] }))"] [thread_id=171]
db日志如下
{"level":"warn","ts":1735570956.9086597,"caller":"v3@v3.5.12/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc003c4ca80/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
{"level":"info","ts":1735570969.7414784,"caller":"v3@v3.5.12/client.go:210","msg":"Auto sync endpoints failed.","error":"context deadline exceeded"}
{"level":"warn","ts":"2024-12-30T23:02:50.168129+0800","logger":"etcd-client","caller":"v3@v3.5.12/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc001065880/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
{"level":"info","ts":"2024-12-30T23:03:21.138379+0800","logger":"etcd-client","caller":"v3@v3.5.12/client.go:210","msg":"Auto sync endpoints failed.","error":"context deadline exceeded"}
{"level":"warn","ts":"2024-12-30T23:03:32.097583+0800","logger":"etcd-client","caller":"v3@v3.5.12/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc001065880/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
{"level":"warn","ts":1735571023.3198137,"caller":"v3@v3.5.12/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc003c4ca80/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"}
{"level":"info","ts":1735571024.2877212,"caller":"v3@v3.5.12/client.go:210","msg":"Auto sync endpoints failed.","error":"context deadline exceeded"}