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

Update benchmark warmup time #15339

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

ericywl
Copy link

@ericywl ericywl commented Jan 23, 2025

Motivation/summary

Fixes #14948

Checklist

  • Trim some words from benchmark workflow inputs to be more succinct
  • Add benchmark warmup time to workflow inputs
  • Increase benchmark warmup time for nightly non-standalone to 10m
  • Reduce benchmark warmup time for scheduled standalone to 3m

How to test these changes

Run throughput benchmark

Appendix

Old workflow inputs:
Screenshot 2025-02-06 at 4 14 34 PM

New workflow inputs:
Screenshot 2025-02-06 at 7 24 57 PM

Test benchmark run on upstream

@ericywl ericywl requested a review from a team as a code owner January 23, 2025 04:49
Copy link
Contributor

mergify bot commented Jan 23, 2025

This pull request does not have a backport label. Could you fix it @ericywl? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-7.17 is the label to automatically backport to the 7.17 branch.
  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • backport-8.x is the label to automatically backport to the 8.x branch.

Copy link
Contributor

mergify bot commented Jan 23, 2025

backport-8.x has been added to help with the transition to the new branch 8.x.
If you don't need it please use backport-skip label.

@mergify mergify bot added the backport-8.x Automated backport to the 8.x branch with mergify label Jan 23, 2025
@ericywl ericywl marked this pull request as draft January 23, 2025 04:53
@ericywl
Copy link
Author

ericywl commented Jan 23, 2025

@rubvs From what I can gather, the benchmark warmup time is configured by BENCHMARK_WARMUP_TIME. Let me know if I missed anything. I will try to run the benchmarks and verify.

@rubvs
Copy link
Contributor

rubvs commented Jan 23, 2025

@ericywl Correct. This should be the only change to make. You can move this out-of-draft and let's get feedback from the rest of the team.

With this issue there isn't much "testing" you can do. I've already concluded this through running many benchmarks. However, this is a great first-issue:

  • It'll force you to read and hopefully improve the docs, see workflow.md in Throughput.
  • Trigger a benchmark in GitHub Actions that run on ESS.
  • Trigger a benchmark from your local machine that runs in ESS.
  • Spot the env var change in the Terraform provisioning logs for confirmation.

@ericywl ericywl marked this pull request as ready for review January 24, 2025 03:02
Copy link
Member

@carsonip carsonip left a comment

Choose a reason for hiding this comment

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

This is good for ESS, but probably not that helpful for standalone apm server (moxy) setup. Can we keep the 5m default for standalone apm setup?

@1pkg
Copy link
Member

1pkg commented Jan 28, 2025

This is good for ESS, but probably not that helpful for standalone apm server (moxy) setup. Can we keep the 5m default for standalone apm setup?

We probably even should reduce it for standalone to not waste resources.

@ericywl
Copy link
Author

ericywl commented Jan 31, 2025

This is good for ESS, but probably not that helpful for standalone apm server (moxy) setup. Can we keep the 5m default for standalone apm setup?

I'm not sure if there's a way to separate between the two. If not I will simply close the PR.

@carsonip
Copy link
Member

carsonip commented Feb 5, 2025

I'm not sure if there's a way to separate between the two. If not I will simply close the PR.

The new default can be set in terraform files e.g. testing/benchmark/main.tf, just not in Makefile.

@ericywl ericywl force-pushed the increase-benchmark-warmup-time branch from 4b5b07f to 37495df Compare February 6, 2025 07:53
@ericywl ericywl requested review from 1pkg and carsonip February 6, 2025 08:13
@ericywl ericywl changed the title Increase benchmark warmup time Update benchmark warmup time Feb 6, 2025
Copy link
Member

@carsonip carsonip left a comment

Choose a reason for hiding this comment

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

Can you also test the PR by pushing to a branch to upstream apm-server repo and triggering workflow runs manually in the GH Actions UI?

.github/workflows/benchmarks.yml Show resolved Hide resolved
.github/workflows/benchmarks.yml Outdated Show resolved Hide resolved
.github/workflows/benchmarks.yml Outdated Show resolved Hide resolved
.github/workflows/benchmarks.yml Outdated Show resolved Hide resolved
.github/workflows/benchmarks.yml Outdated Show resolved Hide resolved
testing/benchmark/README.md Show resolved Hide resolved
testing/benchmark/README.md Outdated Show resolved Hide resolved
carsonip
carsonip previously approved these changes Feb 6, 2025
Copy link
Member

@carsonip carsonip left a comment

Choose a reason for hiding this comment

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

Other than the nits above, lgtm. Great work!

carsonip
carsonip previously approved these changes Feb 6, 2025
testing/benchmark/README.md Outdated Show resolved Hide resolved
1pkg
1pkg previously approved these changes Feb 6, 2025
@ericywl ericywl dismissed stale reviews from 1pkg and carsonip via b065d0f February 7, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-8.x Automated backport to the 8.x branch with mergify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase benchmark warmup time
4 participants