Skip to content

Commit a70dd17

Browse files
Google APIscopybara-github
authored andcommitted
feat: support required_registration_fraction for secondary workers
PiperOrigin-RevId: 578743167
1 parent 6cbf3a6 commit a70dd17

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

google/cloud/dataproc/v1/clusters.proto

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ import "google/api/annotations.proto";
2020
import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
23+
import "google/cloud/dataproc/v1/operations.proto";
2324
import "google/cloud/dataproc/v1/shared.proto";
2425
import "google/longrunning/operations.proto";
2526
import "google/protobuf/duration.proto";
27+
import "google/protobuf/empty.proto";
2628
import "google/protobuf/field_mask.proto";
2729
import "google/protobuf/timestamp.proto";
2830
import "google/protobuf/wrappers.proto";
@@ -693,6 +695,23 @@ message InstanceGroupConfig {
693695
// provisioning models.
694696
InstanceFlexibilityPolicy instance_flexibility_policy = 13
695697
[(google.api.field_behavior) = OPTIONAL];
698+
699+
// Optional. Configuration to handle the startup of instances during cluster
700+
// create and update process.
701+
StartupConfig startup_config = 14 [(google.api.field_behavior) = OPTIONAL];
702+
}
703+
704+
// Configuration to handle the startup of instances during cluster create and
705+
// update process.
706+
message StartupConfig {
707+
// Optional. The config setting to enable cluster creation/ updation to be
708+
// successful only after required_registration_fraction of instances are up
709+
// and running. This configuration is applicable to only secondary workers for
710+
// now. The cluster will fail if required_registration_fraction of instances
711+
// are not available. This will include instance creation, agent registration,
712+
// and service registration (if enabled).
713+
optional double required_registration_fraction = 1
714+
[(google.api.field_behavior) = OPTIONAL];
696715
}
697716

698717
// A reference to a Compute Engine instance.

0 commit comments

Comments
 (0)