Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

benchmark: fix install docs #10473

Merged
merged 1 commit into from
Feb 19, 2019
Merged

benchmark: fix install docs #10473

merged 1 commit into from
Feb 19, 2019

Conversation

haroldHT
Copy link
Contributor

## Download
To get `etcd` from the `master` branch via `go get`:
```sh
go get github.com/coreos/etcd/tools/benchmark
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that 'go get' will perform download AND install.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, how about now?

@haroldHT haroldHT force-pushed the master branch 2 times, most recently from c8dc45c to 7b0b98b Compare February 14, 2019 05:40
@codecov-io
Copy link

codecov-io commented Feb 14, 2019

Codecov Report

Merging #10473 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10473      +/-   ##
==========================================
+ Coverage   71.57%    71.6%   +0.03%     
==========================================
  Files         392      392              
  Lines       36518    36518              
==========================================
+ Hits        26136    26147      +11     
+ Misses       8552     8550       -2     
+ Partials     1830     1821       -9
Impacted Files Coverage Δ
clientv3/leasing/util.go 91.66% <0%> (-6.67%) ⬇️
etcdserver/v3_server.go 73.1% <0%> (-5.75%) ⬇️
proxy/grpcproxy/watcher.go 89.79% <0%> (-4.09%) ⬇️
etcdserver/api/v3compactor/revision.go 70.58% <0%> (-2.95%) ⬇️
etcdserver/api/v3election/election.go 66.66% <0%> (-2.78%) ⬇️
clientv3/concurrency/election.go 79.68% <0%> (-2.35%) ⬇️
mvcc/watchable_store.go 83.5% <0%> (-1.76%) ⬇️
etcdserver/api/v2http/client.go 85.51% <0%> (-1.21%) ⬇️
proxy/grpcproxy/watch.go 88.55% <0%> (-1.21%) ⬇️
etcdserver/api/rafthttp/peer.go 78.77% <0%> (-1.12%) ⬇️
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 784daa0...a1fb18a. Read the comment docs.

Copy link
Contributor

@jingyih jingyih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding of the confusion in #10453 is the following. After user run 'go get ...' command, which performs download and install, he/she cannot find where the benchmark executable is located. If this is the case, I believe it is a standard setting issue regarding $GOPATH and $PATH, not specific to this benchmark tool. To make the doc more clear to new users, we need something similar to https://github.com/etcd-io/etcd/blob/master/Documentation/dl_build.md#build-the-latest-version

```bash
go get github.com/coreos/etcd/tools/benchmark
## Download and install
To get `etcd` from the `master` branch via `go get`:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To get 'benchmark'

Copy link
Contributor

@jingyih jingyih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more comment. Then looks good to me. Thanks for fixing the doc.

## Download and install
To get `benchmark` from the `master` branch via `go get`:
```sh
$ go get github.com/coreos/etcd/tools/benchmark
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I forgot to mention in my previous comment, can we also update the link to:
go get go.etcd.io/etcd/tools/benchmark
The etcd repo was moved to go.etcd.io (see #9965). Both links work because github is redirecting the old url to the new one. But I think it is better we update the link to reflect the new repo name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, get it.

@maoling
Copy link

maoling commented Feb 18, 2019

@ALL

  • Why etcd doesn't make the benchmark shell build-in, just like etcdctl?

@jingyih
Copy link
Contributor

jingyih commented Feb 19, 2019

lgtm

@jingyih jingyih merged commit 8c228d6 into etcd-io:master Feb 19, 2019
@jingyih
Copy link
Contributor

jingyih commented Feb 19, 2019

@maoling I'll try to answer your question in the original issue #10453.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants