go get github.com/coreos/etcd/tools/benchmark,then execbenchmark --endpoints=${HOST_1} --target-leader --conns=1 --clients=1 put --key-size=8 --sequential-keys --total=10000 --val-size=256,but got this error benchmark: command not found@maoling hello, from your cloned copy, try this one go install -v ./tools/benchmark and then run your benchmark, let's see if that work.
Great comment regarding compiling from source and to go get this works for me.
go get go.etcd.io/etcd/tools/benchmark
If you use that method just make sure $GOPATH/bin is part of your $PATH something like
echo $PATH | grep -o $GOPATH/bin
@spzala @hexfusion Thanks for your help.
go get go.etcd.io/etcd/tools/benchmark almost a whole day,and only success one time miraculously(cry), then I find her under $GOPATH/bin.Bingo!net,time not in my local(cry)):Fetching https://google.golang.org/grpc?go-get=1
Fetching https://google.golang.org/genproto?go-get=1
Fetching https://golang.org/x/net?go-get=1
Fetching https://golang.org/x/time?go-get=1
Fetching https://golang.org/x/text?go-get=1
Fetching https://golang.org/x/sync?go-get=1
Fetching https://golang.org/x/sys?go-get=1
Fetching https://golang.org/x/crypto?go-get=1
then I install them one by one ,just like this
$mkdir -p $GOPATH/src/golang.org/x/
$cd $GOPATH/src/golang.org/x/
$git clone https://github.com/golang/net.git net
$go install net
Finally, I quit and weep in the toilet.
benchmark shell build-in, just like etcdctl?How about try to use GOPROXY to do that by package https://github.com/goproxyio/goproxy ?
And I use it with a HK VPS .It works!
- Why etcd doesn't make the
benchmarkshell build-in, just likeetcdctl?
My understanding is the tools under the tool folder are not necessarily needed by every user, so their download and installation is optional. Whereas etcdctl is the command line tool that is likely used by most users.
@maoling :( With reasoning @jingyih provided above and related merged PR, is it OK to close the issue? Thanks!
@spzala Of Course,Let me close it.
Most helpful comment
Great comment regarding compiling from source and to
go getthis works for me.go get go.etcd.io/etcd/tools/benchmarkIf you use that method just make sure $GOPATH/bin is part of your $PATH something like