Skip to content

/opt/etcd/etcdctl --user=root:'123456' --endpoints=http://127.0.0.1:2379 defrag #15664

Closed Answered by chaochn47
b03jsj asked this question in Q&A
Discussion options

You must be logged in to vote

why execute defragment got error like "context deadline exceeded"

if dbsize level is low , then defragment is ok. if dbsize high, then failed

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 throw context deadline exceeded error instead of waiting indefinitely.

Could you please adjust the --command-timeout for longer time? Maybe starting with 1m.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@b03jsj
Comment options

@chaochn47
Comment options

@b03jsj
Comment options

@vwalek
Comment options

@b03jsj
Comment options

Answer selected by b03jsj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants