Skip to content

resource_usage_agent: support summary data reporting#814

Merged
disksing merged 6 commits intopingcap:masterfrom
mornyx:resource-metering
Oct 9, 2021
Merged

resource_usage_agent: support summary data reporting#814
disksing merged 6 commits intopingcap:masterfrom
mornyx:resource-metering

Conversation

@mornyx
Copy link
Contributor

@mornyx mornyx commented Sep 22, 2021

Signed-off-by: mornyx mornyx.z@gmail.com

Signed-off-by: mornyx <mornyx.z@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Sep 22, 2021

CLA assistant check
All committers have signed the CLA.

Signed-off-by: mornyx <mornyx.z@gmail.com>
@mornyx mornyx changed the title resource_usage_agent: add a method for reporting summary data resource_usage_agent: support summary data reporting Sep 24, 2021
Signed-off-by: mornyx <mornyx.z@gmail.com>
Signed-off-by: mornyx <mornyx.z@gmail.com>
//
// Report the CPU time records. By default, the records with the same
// resource group tag will be batched by minute.
rpc ReportCPUTime(stream CPUTimeRecord) returns (EmptyResponse) {}
Copy link
Member

@breezewish breezewish Sep 28, 2021

Choose a reason for hiding this comment

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

We can change CPUTimeRecord to ResourceUsageRecord and not using CPUTimeRecord any more, since this change is compatible. For old clients, it will result in missing some new fields in the ResourceUsageRecord structure in the ReportCPUTime interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I’m not sure before, it seems that the type name of the parameter does not affect compatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My idea is to keep the original proto text unchanged to avoid the illusion of breaking compatibility, and these will be deleted when the transition is completed.

Copy link
Member

@breezewish breezewish left a comment

Choose a reason for hiding this comment

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

The rest LGTM

@disksing disksing merged commit 552bcd4 into pingcap:master Oct 9, 2021
@mornyx mornyx deleted the resource-metering branch May 25, 2022 04:16
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.

4 participants