123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- syntax = "proto3";
- package google.cloud.dataproc.logging;
- import "google/protobuf/duration.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/dataproc/logging;logging";
- option java_multiple_files = true;
- option java_package = "com.google.cloud.dataproc.logging";
- message ClusterSize {
-
- int32 primary_worker_count = 1;
-
- int32 secondary_worker_count = 2;
- }
- message AutoscalerLog {
-
- AutoscalerStatus status = 1;
-
-
- AutoscalerRecommendation recommendation = 2;
- }
- enum AutoscalerState {
- AUTOSCALER_STATE_UNSPECIFIED = 0;
-
- COOLDOWN = 1;
-
-
- RECOMMENDING = 6;
-
- SCALING = 2;
-
- STOPPED = 3;
-
- FAILED = 4;
-
- INITIALIZING = 5;
- }
- enum ScalingDecisionType {
- SCALING_DECISION_TYPE_UNSPECIFIED = 0;
-
- SCALE_UP = 1;
-
- SCALE_DOWN = 2;
-
- NO_SCALE = 3;
-
- MIXED = 4;
- }
- enum ConstrainingFactor {
- CONSTRAINING_FACTOR_UNSPECIFIED = 0;
-
-
- SCALING_CAPPED_DUE_TO_LACK_OF_QUOTA = 1;
-
-
-
- REACHED_MAXIMUM_CLUSTER_SIZE = 2;
-
-
-
- REACHED_MINIMUM_CLUSTER_SIZE = 3;
- }
- message AutoscalerStatus {
-
- AutoscalerState state = 1;
-
- string details = 2;
-
- string update_cluster_operation_id = 3;
-
- string error = 4;
- }
- message AutoscalerRecommendation {
-
- message Inputs {
-
-
- map<string, string> cluster_metrics = 1;
-
- ClusterSize current_cluster_size = 2;
-
- ClusterSize min_worker_counts = 3;
-
- ClusterSize max_worker_counts = 4;
- }
-
- message Outputs {
-
-
- ScalingDecisionType decision = 1;
-
- ClusterSize recommended_cluster_size = 2;
-
- google.protobuf.Duration graceful_decommission_timeout = 3;
-
- repeated ConstrainingFactor constraints_reached = 4;
-
-
- repeated string additional_recommendation_details = 5;
-
-
- string recommendation_id = 6;
- }
-
- Inputs inputs = 1;
-
- Outputs outputs = 2;
- }
|