package clusterimpl
import "google.golang.org/grpc/internal/xds/balancer/clusterimpl"
Package clusterimpl implements the xds_cluster_impl balancing policy. It handles the cluster features (e.g. circuit_breaking, RPC dropping).
Note that it doesn't handle name resolution, which is done by policy xds_cluster_resolver.
Index ¶
Constants ¶
const ( // Name is the name of the cluster_impl balancer. Name = "xds_cluster_impl_experimental" )
Variables ¶
NewRandomWRR is used when calculating drops. It's exported so that tests can override it.
Types ¶
type DropConfig ¶
DropConfig contains the category, and drop ratio.
type LBConfig ¶
type LBConfig struct {
serviceconfig.LoadBalancingConfig `json:"-"`
Cluster string `json:"cluster,omitempty"`
EDSServiceName string `json:"edsServiceName,omitempty"`
// LoadReportingServer is the LRS server to send load reports to. If not
// present, load reporting will be disabled.
LoadReportingServer *bootstrap.ServerConfig `json:"lrsLoadReportingServer,omitempty"`
MaxConcurrentRequests *uint32 `json:"maxConcurrentRequests,omitempty"`
DropCategories []DropConfig `json:"dropCategories,omitempty"`
// TelemetryLabels are the telemetry Labels associated with this cluster.
TelemetryLabels map[string]string `json:"telemetryLabels,omitempty"`
ChildPolicy *internalserviceconfig.BalancerConfig `json:"childPolicy,omitempty"`
}
LBConfig is the balancer config for cluster_impl balancer.
Source Files ¶
clusterimpl.go config.go logging.go picker.go
Directories ¶
| Path | Synopsis |
|---|---|
| internal/xds/balancer/clusterimpl/tests |
- Version
- v1.77.0-dev
- Published
- Sep 17, 2025
- Platform
- js/wasm
- Imports
- 28 packages
- Last checked
- 37 minutes ago –
Tools for package owners.