-
Notifications
You must be signed in to change notification settings - Fork 225
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 resource group name in request context #650
Conversation
Signed-off-by: glorv <[email protected]>
e6a96d4
to
f221182
Compare
Signed-off-by: glorv <[email protected]>
@sticnarf @Connor1996 PTAL |
Must we use the name "resource group"? Two unrelated concepts sharing the same name is really confusing... (Though I think it's more of the original |
The change in pingcap/kvproto#1029 used |
Indeed. How about changing the original name |
Could you please briefly explain what The previous I agree that maybe (If only to avoid confusion, maybe |
The resource group is a term used for resource control of different tenants or users. Each resource group defines resource quotas that it can use, like the number of CPU cores, read bandwidth and write bandwidth. |
Yes, I think |
What I want to make sure that the renaming is only seen internally. No external user interface will be affected, including metrics indicators. Is that true? |
We need to update TiDB/TiKV/kvproto/client-go at the same time. I think /cc @zhongzc @breezewish |
I think it's fine, because renaming a protobuf field name should be a compatible change. @mornyx |
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.
lgtm. I support to change resource_group_tag
to resource_metering_tag
or metering_tag
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.
lgtm
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.
LGTM
@sticnarf PTAL again, thanks |
I find the lock resolver sends requests without the resource group name. Typically, the amount should be small. Are you going to set resource group name also for lock resolving requests? |
Signed-off-by: glorv <[email protected]>
…o into resource-group-name
@sticnarf. Sorry I missed it. I fixed this by fetch the resource group name from the context, so the caller can bind this kind of requests to a specific resource group. |
No description provided.