bot_scaling.proto: Add fields to support cost savings
Add fields to support calculation of per run cost savings, when compared
to max values for bots configured.
Bug: chromium:1077872
Change-Id: I925e0f400abe656ce97e9971e773196cd9fd2dce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2180866
Reviewed-by: David Burger <dburger@chromium.org>
Reviewed-by: Dhanya Ganesh <dhanyaganesh@chromium.org>
Commit-Queue: Mike Nichols <mikenichols@chromium.org>
Tested-by: Mike Nichols <mikenichols@chromium.org>
diff --git a/go/chromiumos/bot_scaling.pb.go b/go/chromiumos/bot_scaling.pb.go
index 6a5c58c..ecab572 100644
--- a/go/chromiumos/bot_scaling.pb.go
+++ b/go/chromiumos/bot_scaling.pb.go
@@ -119,7 +119,9 @@
// The string bot "shirt size" to be requested for the group.
BotSize string `protobuf:"bytes,1,opt,name=bot_size,json=botSize,proto3" json:"bot_size,omitempty"`
// The number of cores per bot. Will be used to limit quota usage.
- CoresPerBot int32 `protobuf:"varint,2,opt,name=cores_per_bot,json=coresPerBot,proto3" json:"cores_per_bot,omitempty"`
+ CoresPerBot int32 `protobuf:"varint,2,opt,name=cores_per_bot,json=coresPerBot,proto3" json:"cores_per_bot,omitempty"`
+ // Estimated hourly cost.
+ HourlyCost float32 `protobuf:"fixed32,3,opt,name=hourly_cost,json=hourlyCost,proto3" json:"hourly_cost,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@@ -164,6 +166,13 @@
return 0
}
+func (m *BotType) GetHourlyCost() float32 {
+ if m != nil {
+ return m.HourlyCost
+ }
+ return 0
+}
+
// Defines Swarming dimensions associated with a bot group.
type SwarmingDimension struct {
// Dimesion name
@@ -517,11 +526,14 @@
// for this bot group. See step_size for more info.
Actionable ScalingAction_Actionable `protobuf:"varint,3,opt,name=actionable,proto3,enum=chromiumos.ScalingAction_Actionable" json:"actionable,omitempty"`
// Total number of bots requested for the group.
- BotsRequested int32 `protobuf:"varint,4,opt,name=bots_requested,json=botsRequested,proto3" json:"bots_requested,omitempty"`
- RegionalActions []*ScalingAction_RegionalAction `protobuf:"bytes,5,rep,name=regional_actions,json=regionalActions,proto3" json:"regional_actions,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
+ BotsRequested int32 `protobuf:"varint,4,opt,name=bots_requested,json=botsRequested,proto3" json:"bots_requested,omitempty"`
+ RegionalActions []*ScalingAction_RegionalAction `protobuf:"bytes,5,rep,name=regional_actions,json=regionalActions,proto3" json:"regional_actions,omitempty"`
+ // Estimated savings based on current run.
+ // Based on current number of bots compared against the max.
+ EstimatedSavings float32 `protobuf:"fixed32,6,opt,name=estimated_savings,json=estimatedSavings,proto3" json:"estimated_savings,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
}
func (m *ScalingAction) Reset() { *m = ScalingAction{} }
@@ -584,6 +596,13 @@
return nil
}
+func (m *ScalingAction) GetEstimatedSavings() float32 {
+ if m != nil {
+ return m.EstimatedSavings
+ }
+ return 0
+}
+
// How the bot requests are distributed between regions & prefixes.
type ScalingAction_RegionalAction struct {
// Region of the bot sub-group.
@@ -702,57 +721,60 @@
func init() { proto.RegisterFile("chromiumos/bot_scaling.proto", fileDescriptor_dbe70eabfd64e7ef) }
var fileDescriptor_dbe70eabfd64e7ef = []byte{
- // 820 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0x5b, 0x6f, 0xe3, 0x44,
- 0x14, 0x5e, 0x27, 0x4d, 0xb2, 0x39, 0x69, 0xd2, 0x74, 0xba, 0x20, 0x6f, 0x01, 0x11, 0x2c, 0x10,
- 0x79, 0x4a, 0xa5, 0x82, 0x00, 0x89, 0xa7, 0xe6, 0xd2, 0x36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0x17, 0xed, 0x1b, 0x21, 0xbc,
- 0x7e, 0xb6, 0x7d, 0xdc, 0x12, 0xeb, 0xa6, 0xe8, 0x7f, 0xf7, 0xdb, 0xb7, 0x31, 0x7b, 0x72, 0xef,
- 0x31, 0x1e, 0x9f, 0xad, 0xfd, 0xce, 0x68, 0x76, 0xcf, 0xc3, 0x33, 0xfd, 0x23, 0x3b, 0x8b, 0xd9,
- 0xda, 0x4b, 0x54, 0xd5, 0xe0, 0x37, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xab, 0x89, 0xc3, 0x59,
- 0xfd, 0x06, 0x00, 0x00,
+ // 869 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdf, 0x6e, 0xe3, 0xc4,
+ 0x17, 0x5e, 0x27, 0x4d, 0xb2, 0x39, 0x69, 0xd2, 0x74, 0xba, 0xbf, 0x9f, 0xbc, 0x05, 0x44, 0x88,
+ 0x40, 0x58, 0x42, 0x4a, 0xa5, 0x82, 0x00, 0x89, 0xab, 0xe6, 0x4f, 0xbb, 0x11, 0xd4, 0x89, 0xc6,
+ 0xad, 0x60, 0xe1, 0xc2, 0xb2, 0x93, 0xa9, 0x3b, 0x5a, 0xdb, 0x63, 0x66, 0x26, 0xbb, 0x74, 0xdf,
+ 0x83, 0xc7, 0xe0, 0xad, 0x78, 0x10, 0x34, 0x7f, 0xdc, 0x24, 0x4d, 0xf6, 0x02, 0x89, 0x3b, 0x9f,
+ 0x6f, 0xe6, 0x7c, 0x67, 0xce, 0x77, 0xbe, 0x93, 0xc0, 0xc7, 0x8b, 0x7b, 0xce, 0x32, 0xba, 0xca,
+ 0x98, 0x38, 0x8b, 0x99, 0x0c, 0xc5, 0x22, 0x4a, 0x69, 0x9e, 0x0c, 0x0a, 0xce, 0x24, 0x43, 0xb0,
+ 0x3e, 0xed, 0x53, 0x68, 0x0c, 0x99, 0xbc, 0x79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0xc7, 0xeb,
+ 0x03, 0xc6, 0x93, 0xb3, 0x8d, 0x3f, 0x47, 0x9a, 0xdf, 0xf1, 0xe8, 0x4c, 0xff, 0x2d, 0x9e, 0x25,
+ 0x6c, 0xe3, 0x24, 0xae, 0x6b, 0xf0, 0xeb, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x55, 0x20, 0xdc,
+ 0xcd, 0x4b, 0x07, 0x00, 0x00,
}
diff --git a/src/chromiumos/bot_scaling.proto b/src/chromiumos/bot_scaling.proto
index f7593e9..3c40d44 100644
--- a/src/chromiumos/bot_scaling.proto
+++ b/src/chromiumos/bot_scaling.proto
@@ -14,6 +14,8 @@
string bot_size = 1;
// The number of cores per bot. Will be used to limit quota usage.
int32 cores_per_bot = 2;
+ // Estimated hourly cost.
+ float hourly_cost = 3;
}
// Defines Swarming dimensions associated with a bot group.
@@ -135,6 +137,9 @@
int32 bots_requested = 3;
}
repeated RegionalAction regional_actions = 5;
+ // Estimated savings based on current run.
+ // Based on current number of bots compared against the max.
+ float estimated_savings = 6;
}
// All the actions that will be executed by RoboCrop.