-
{"level":"warn","ts":"2023-04-07T17:27:11.380+0800","logger":"etcd-client","caller":"v3/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc0003d8a80/127.0.0.1:2379","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"} dbsize 2.5 GB why execute defragment got error like "context deadline exceeded" if dbsize level is low , then defragment is ok. if dbsize high, then failed and last ,the dbsize not change this is my etcd config param: name: 'etcd01' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @b03jsj, from my past experience, the error Could you please adjust the |
Beta Was this translation helpful? Give feedback.
Hi @b03jsj, from my past experience, the error
context deadline exceeded
is because defragment handling in etcd server could take longer than the flag--command-timeout
value of etcdctl, (which is by default 5s), especially for large db, then grpc based etcd client will give up and throwcontext deadline exceeded
error instead of waiting indefinitely.Could you please adjust the
--command-timeout
for longer time? Maybe starting with1m
.