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 parameter of simulation test #6226

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

Shaddoll
Copy link
Member

@Shaddoll Shaddoll commented Aug 13, 2024

What changed?

  • Replace TaskGeneratorTickInterval with TaskQPS
  • Update some parameters to be consistent with values used in production
  • Add new parameters

Why?
The new parameter is more straightforward to control the load of traffic.

How did you test it?

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.87%. Comparing base (de281a6) to head (ec5a8eb).
Report is 2 commits behind head on master.

Additional details and impacted files

see 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

generatedTasksCounter *int32,
lastTaskScheduleID *int32,
wg *sync.WaitGroup) {
defer wg.Done()

t := time.NewTicker(taskGenerateInterval)
defer t.Stop()

for {
select {
case <-ctx.Done():
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I think we can remove this since we handle checking if the context is done via the rateLimiter.Wait call.

host/testdata/matching_simulation_burst.yaml Outdated Show resolved Hide resolved
@Shaddoll Shaddoll merged commit d4df0cf into cadence-workflow:master Aug 13, 2024
17 checks passed
@Shaddoll Shaddoll deleted the sim branch August 13, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants