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

Task priority assigner implementation #2740

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

yycptt
Copy link
Member

@yycptt yycptt commented Apr 19, 2022

What changed?

  • Implement Task priority assigner interface

Why?

  • Host level worker pool implementation

How did you test it?

  • Added unit test

Potential risks

  • N/A, not used anywhere

Is hotfix candidate?
No.

@yycptt yycptt requested review from wxing1292 and yiminc April 19, 2022 21:43
@yycptt yycptt requested a review from a team as a code owner April 19, 2022 21:43
namespaceName string,
) quotas.RateLimiter {
a.RLock()
rateLimiter, ok := a.rateLimiters[namespaceName]
Copy link
Contributor

Choose a reason for hiding this comment

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

i would prefer namespace UUID

Copy link
Member Author

Choose a reason for hiding this comment

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

I think using namespace name will be more friendly to the operator when tuning the rps limit. And since we need to access the namespace registry anyway to check if the namespace is active or not, the conversion from ID to name doesn't have an extra cost.
Let me know if you have strong opinion on this and we can sync offline.

@yycptt yycptt merged commit dd4a427 into temporalio:master Apr 20, 2022
@yycptt yycptt deleted the priority-assigner-impl branch April 20, 2022 18:22
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.

None yet

3 participants