Skip to content

Commit 26d63d2

Browse files
committed
Add an entry for random_subsetting LB policy's configuration
1 parent 23f5b56 commit 26d63d2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

grpc/service_config/service_config.proto

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,17 @@ message OverrideHostLoadBalancingPolicyConfig {
477477
repeated HealthStatus override_host_status = 1 [deprecated = true];
478478
}
479479

480+
// Configuration for the random_subsetting_experimental LB policy.
481+
// See gRFC A68.
482+
message RandomSubsettingLoadBalancingConfig {
483+
// Number of backends every client will be connected to. The value is
484+
// required and must be greater than 0.
485+
uint32 subset_size = 1;
486+
487+
// The configuration for the child policy. The value is required.
488+
repeated LoadBalancingConfig child_policy = 2;
489+
}
490+
480491
// Selects LB policy and provides corresponding configuration.
481492
//
482493
// In general, all instances of this field should be repeated. Clients will
@@ -542,6 +553,8 @@ message LoadBalancingConfig {
542553
[json_name = "ring_hash_experimental"];
543554
LeastRequestLocalityLoadBalancingPolicyConfig least_request_experimental =
544555
17 [json_name = "least_request_experimental"];
556+
RandomSubsettingLoadBalancingConfig random_subsetting_experimental =
557+
21 [json_name = "random_subsetting_experimental"];
545558

546559
// Deprecated xDS-related policies.
547560
XdsClusterResolverLoadBalancingPolicyConfig
@@ -555,7 +568,7 @@ message LoadBalancingConfig {
555568
XdsConfig xds_experimental = 5 [json_name = "xds_experimental",
556569
deprecated = true];
557570

558-
// Next available ID: 21
571+
// Next available ID: 22
559572
}
560573
}
561574

0 commit comments

Comments
 (0)