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

Add a wait time for task dispatchers #6223

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

Shaddoll
Copy link
Member

@Shaddoll Shaddoll commented Aug 9, 2024

What changed?
Add a wait time for task dispatchers

Why?
To increase the rate of sync match and local match.

How did you test it?
Existing tests and manual bench tests

Potential risks
This is protected by a dynamicconfig property, it's easy to rollback

Release notes

Documentation Changes

Copy link

codecov bot commented Aug 9, 2024

Codecov Report

Attention: Patch coverage is 97.05882% with 1 line in your changes missing coverage. Please review.

Project coverage is 72.88%. Comparing base (de281a6) to head (06b9eae).

Files Patch % Lines
service/matching/tasklist/matcher.go 96.66% 1 Missing ⚠️
Additional details and impacted files
Files Coverage Δ
service/matching/config/config.go 100.00% <100.00%> (ø)
service/matching/tasklist/task_list_manager.go 67.40% <100.00%> (+0.24%) ⬆️
service/matching/tasklist/matcher.go 63.67% <96.66%> (+1.39%) ⬆️

... and 4 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 de281a6...06b9eae. Read the comment docs.

@taylanisikdemir
Copy link
Member

How does simulation output look before/after this change?

err := <-task.ResponseC
tm.scope.RecordTimer(metrics.SyncMatchLocalPollLatencyPerTaskList, time.Since(startT))
if err == nil {
e.EventName = "Offer task due to local wait"
Copy link
Member

Choose a reason for hiding this comment

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

can you add a new output section to run_matching_simulation.sh to show count of such events?

Copy link
Member Author

Choose a reason for hiding this comment

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

will do it in a separate PR

@Shaddoll Shaddoll merged commit 32e3878 into cadence-workflow:master Aug 13, 2024
19 checks passed
@Shaddoll Shaddoll deleted the task-wait branch August 13, 2024 20:02
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.

2 participants