Skip to content

Commit

Permalink
import cncf/xds using import.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
danielzhaotongliu committed Jun 7, 2023
1 parent 33a402d commit 3bec887
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion xds/third_party/xds/import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
set -e
BRANCH=main
# import VERSION from one of the google internal CLs
VERSION=32f1caf87195bf3390061c29f18987e51ca56a88
VERSION=e9ce68804cb4e64cab5a52e3c8baf840d4ff87b7
GIT_REPO="https://github.com/cncf/xds.git"
GIT_BASE_DIR=xds
SOURCE_PROTO_BASE_DIR=xds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ import "validate/validate.proto";

message OrcaLoadReport {
// CPU utilization expressed as a fraction of available CPU resources. This
// should be derived from the latest sample or measurement.
double cpu_utilization = 1 [(validate.rules).double.gte = 0, (validate.rules).double.lte = 1];
// should be derived from the latest sample or measurement. The value may be
// larger than 1.0 when the usage exceeds the reporter dependent notion of
// soft limits.
double cpu_utilization = 1 [(validate.rules).double.gte = 0];

// Memory utilization expressed as a fraction of available memory
// resources. This should be derived from the latest sample or measurement.
Expand Down Expand Up @@ -45,4 +47,12 @@ message OrcaLoadReport {

// Application specific opaque metrics.
map<string, double> named_metrics = 8;

// Application specific utilization expressed as a fraction of available
// resources. For example, an application may report the max of CPU and memory
// utilization for better load balancing if it is both CPU and memory bound.
// This should be derived from the latest sample or measurement.
// The value may be larger than 1.0 when the usage exceeds the reporter
// dependent notion of soft limits.
double application_utilization = 9 [(validate.rules).double.gte = 0];
}

0 comments on commit 3bec887

Please sign in to comment.