- 
                Notifications
    You must be signed in to change notification settings 
- Fork 10.2k
WIP: Add make targets for benchmark operation tooling #20769
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
base: main
Are you sure you want to change the base?
Conversation
| [APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kishen-v The full list of commands accepted by this bot can be found here. 
Needs approval from an approver in each of these files:
 Approvers can indicate their approval by writing  | 
| Hi @kishen-v. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with  Once the patch is verified, the new status will be reflected by the  I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. | 
Signed-off-by: Kishen Viswanathan <[email protected]>
f2f8c70    to
    cc29fc7      
    Compare
  
    | } | ||
|  | ||
| fileName := fmt.Sprintf("EtcdAPI_benchmark_%s.json", time.Now().UTC().Format(time.RFC3339)) | ||
| fileName := fmt.Sprintf("EtcdAPI_benchmark_%s_%s.json", benchmarkOp, time.Now().UTC().Format(time.RFC3339)) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should not affect the perfdash parser's config, and is done to help to find relevant files of data tied to a particular benchmark operation easily.
| DATA_DIR=$(mktemp -d /tmp/etcd/data-XXXXXX) | ||
| ARTIFACTS_DIR="${ARTIFACTS:-./_artifacts}" | ||
| mkdir -p "$ARTIFACTS_DIR" | ||
| ETCD_LOG_FILE="${ARTIFACTS_DIR}/etcd-${bench}-$(date +%Y%m%d-%H%M%S).log" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thought: Should it be good to have the logs uploaded to the GCS bucket along with the perfash report?
| /cc @serathius | 
| ./scripts/update_go_workspace.sh | ||
|  | ||
| .PHONY: help | ||
| help: | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove everything unrelated to the PR.
| bench-put: build install-benchmark | ||
| @echo "Running benchmark: put $(ARGS)" | ||
| ./scripts/benchmark_test.sh put $(ARGS) | ||
| .PHONY: bench-lease-keepalive bench-put bench-txn-mixed bench-watch-latency bench-watch bench-range-key | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we are ready yet to run all those benchmarks. Please focus on one.
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rewrite is too big and unreviewable.
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.
Changes in this PR:
lease-keepalive,put,txn-mixed,watch-latency,watchthrough thebenchmark_test.shscript.benchmark_test.sh, with supporting logic to set up and teardown the etcd process and the associated DATA_DIR between runs.make benchtarget.make helpto document the usage of the benchmark related targets.EtcdAPI_benchmark_<benchmark_operation>_<date>.jsonformat to help distingush between files and the associated benchmark, from the earlierEtcdAPI_benchmark_<date>.jsonformat.Sample Result: