Skip to content

Commit 7160b0c

Browse files
Google APIscopybara-github
authored andcommitted
feat: add the cohort and auto tuning configuration to the batch's RuntimeConfig
PiperOrigin-RevId: 646101687
1 parent 9861d15 commit 7160b0c

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

google/cloud/dataproc/v1/shared.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ message RuntimeConfig {
5050
// Optional. Dependency repository configuration.
5151
RepositoryConfig repository_config = 5
5252
[(google.api.field_behavior) = OPTIONAL];
53+
54+
// Optional. Autotuning configuration of the workload.
55+
AutotuningConfig autotuning_config = 6
56+
[(google.api.field_behavior) = OPTIONAL];
57+
58+
// Optional. Cohort identifier. Identifies families of the workloads having
59+
// the same shape, e.g. daily ETL jobs.
60+
string cohort = 7 [(google.api.field_behavior) = OPTIONAL];
5361
}
5462

5563
// Environment configuration for a workload.
@@ -464,6 +472,28 @@ message GkeNodePoolConfig {
464472
[(google.api.field_behavior) = OPTIONAL];
465473
}
466474

475+
// Autotuning configuration of the workload.
476+
message AutotuningConfig {
477+
// Scenario represents a specific goal that autotuning will attempt to achieve
478+
// by modifying workloads.
479+
enum Scenario {
480+
// Default value.
481+
SCENARIO_UNSPECIFIED = 0;
482+
483+
// Scaling recommendations such as initialExecutors.
484+
SCALING = 2;
485+
486+
// Adding hints for potential relation broadcasts.
487+
BROADCAST_HASH_JOIN = 3;
488+
489+
// Memory management for workloads.
490+
MEMORY = 4;
491+
}
492+
493+
// Optional. Scenarios for which tunings are applied.
494+
repeated Scenario scenarios = 2 [(google.api.field_behavior) = OPTIONAL];
495+
}
496+
467497
// Configuration for dependency repositories
468498
message RepositoryConfig {
469499
// Optional. Configuration for PyPi repository.

0 commit comments

Comments
 (0)