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

service config: add Random Subsetting LB Policy (gRFC A68) #157

Open
wants to merge 2 commits into
base: master
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
15 changes: 14 additions & 1 deletion grpc/service_config/service_config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,16 @@ message OverrideHostLoadBalancingPolicyConfig {
repeated HealthStatus override_host_status = 1 [deprecated = true];
}

// Configuration for the random_subsetting_experimental LB policy.
message RandomSubsettingLbConfig {
// subset_size indicates how many backends every client will be connected to.
// The value is required and must be greater than 0.
uint32 subset_size = 1;
// The config for the child policy.
// The value is required.
repeated LoadBalancingConfig child_policy = 2;
}

// Selects LB policy and provides corresponding configuration.
//
// In general, all instances of this field should be repeated. Clients will
Expand Down Expand Up @@ -517,6 +527,9 @@ message LoadBalancingConfig {
// balancing policy.
GrpcLbConfig grpclb = 3;

RandomSubsettingLbConfig random_subsetting = 21
[json_name = "random_subsetting"];

// REMAINING POLICIES ARE EXPERIMENTAL -- DO NOT USE

PriorityLoadBalancingPolicyConfig priority_experimental = 9
Expand Down Expand Up @@ -554,7 +567,7 @@ message LoadBalancingConfig {
XdsConfig xds_experimental = 5 [json_name = "xds_experimental",
deprecated = true];

// Next available ID: 21
// Next available ID: 22
}
}

Expand Down