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

A51 update: Allow cpu_utilization larger than 1.0 #358

Merged
merged 3 commits into from
Apr 28, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
cpu utilization >1
  • Loading branch information
yousukseung committed Apr 26, 2023
commit 9f5addf588e7db1489ae248fb78a509f985d7650
6 changes: 4 additions & 2 deletions A51-custom-backend-metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ class CallMetricRecorder {

// Records a call metric measurement for CPU utilization.
// Multiple calls to this method will override the stored value.
// Values outside of the valid range [0, 1] are ignored.
// The value may be larger than 1.0 when the usage exceeds the soft limit.
// Values outside of the valid range [0, infy) are ignored.
CallMetricRecorder& RecordCpuUtilizationMetric(double value);

// Records a call metric measurement for memory utilization.
Expand Down Expand Up @@ -531,7 +532,8 @@ class ServerMetricRecorder {
public:
// Factory method. Use this to create.
static std::unique_ptr<ServerMetricRecorder> Create();
// Records the server CPU utilization in the range [0, 1].
// Records the server CPU utilization in the range [0, infy).
// The value may be larger than 1.0 when the usage exceeds the soft limit.
// Values outside of the valid range are rejected.
// Overrides the stored value when called again with a valid value.
void SetCpuUtilization(double value);
Expand Down