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

Make DPS shutdown mode an enumerable value set #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
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
27 changes: 20 additions & 7 deletions proto/bos/v1/performance.proto
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ message TunerConstraints {
braiins.bos.v1.HashrateConstraints hashrate_target = 2;
}

message DPSShutdownEnabled {
// Dynamic Performance Scaling shutdown duration
braiins.bos.v1.Hours shutdown_duration = 7;
}

message DPSShutdownDisabled {}

message DPSConfiguration {
// Flag if Dynamic Performance Scaling is enabled
optional bool enabled = 1;
Expand All @@ -62,10 +69,13 @@ message DPSConfiguration {
braiins.bos.v1.Power min_power_target = 4;
// Dynamic Performance Scaling minimal hashrate target
braiins.bos.v1.TeraHashrate min_hashrate_target = 5;
// Flag if shutdown for Dynamic Performance Scaling is enabled
optional bool shutdown_enabled = 6;
// Dynamic Performance Scaling shutdown duration
braiins.bos.v1.Hours shutdown_duration = 7;
// Dynamic Performance Scaling shudown mode
oneof shutdown_mode {
// Dynamic Performance Scaling shutdown enabled
DPSShutdownEnabled enabled = 6;
// Dynamic Performance Scaling shutdown enabled
DPSShutdownDisabled disabled = 7;
}
}

message HashboardPerformanceConfiguration {
Expand Down Expand Up @@ -271,9 +281,12 @@ message SetDPSRequest {
// Flag if Dynamic Performance Scaling should be enabled
optional bool enable = 2;
// Flag if shutdown for Dynamic Performance Scaling should be enabled
optional bool enable_shutdown = 3;
// Dynamic Performance Scaling shutdown duration
optional braiins.bos.v1.Hours shutdown_duration = 4;
oneof shutdown_mode {
// Dynamic Performance Scaling shutdown enabled
DPSShutdownEnabled enabled = 3;
// Dynamic Performance Scaling shutdown enabled
DPSShutdownDisabled disabled = 4;
}
// Dynamic Performance Scaling target
DPSTarget target = 5;
}
Expand Down