Skip to content

[probes.grpc] Provide a way to specify default load balancer config. - #1037

Merged
manugarg merged 2 commits into
mainfrom
grpc_lb
Mar 11, 2025
Merged

manugarg merged 2 commits into
mainfrom
grpc_lb

Conversation

@manugarg

@manugarg manugarg commented Mar 11, 2025 •

Copy link
Copy Markdown
Contributor
  • Provide a way to specify default load balancer config. Clarify it only matters for client side load-balancing.
  • Apply grpclb service config only for grpclb targets.

(See #1022 for some background discussion)

More about service configs:

Service config1 is typically provided by LB resolvers, e.g. xds, and is used to configure
parameters like client-side loadbalancing policy. To take care of the situations where
resolver don't typically provide a service config (e.g. DNS), clients can provide a default
service config. For example, you might have a DNS based LB setup where DNS resolution
simply returns a list of IPs (e.g. a k8s headless service2), clients can then use the default
service config to round-robin through the list of IPs.

Here is our own resolver implementation (srvlist), returning a service config:

state.ServiceConfig = res.cc.ParseServiceConfig("{\"loadBalancingPolicy\": \"round_robin\"}")

@manugarg manugarg changed the title [probes.grpc] Clarify load balancer config option [probes.grpc] Provide a way to specify default load balancer config. Mar 11, 2025
@manugarg
manugarg merged commit 6949593 into main Mar 11, 2025
@manugarg
manugarg deleted the grpc_lb branch March 11, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant