Skip to content

How to delete binary keys created by benchmark tool in ETCD #17105

Answered by jmhbnz
shaoqin2 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @shaoqin2 - Thanks for your question. I managed to delete the binary keys as follows.

1 - Start etcd instance

./bin/etcd

2 - Run benchmark tool to create keys

Note: I'm only adding 10 keys to keep this example simple.

benchmark  put  --val-size 10000  --clients=100 --conns=100 --total=10 --sequential-keys --key-space-size=100000

3 - Confirm keys present

 james  ~  Documents  etcd  bin   main                                                                                                                                        07:43:55 
 ➜ ./etcdctl get "" --prefix --keys-only --hex
\x00\x00\x00\x00\x00\x00\x00\x00

\x02\x00\x00\x00\x00\x00\x00\x00

\x04\x00\x00\x00\x00\x00\x00\x0…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shaoqin2
Comment options

@jmhbnz
Comment options

Answer selected by shaoqin2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment