Documentation
¶
Overview ¶
Package balancer adapts onexmesh's selector to a gRPC balancer so the framework's load-balancing strategies (round_robin, weighted, p2c, ...) are used by the gRPC client instead of grpc's built-in balancers.
Index ¶
Constants ¶
const Name = "onexmesh_selector"
Name is the registered gRPC balancer name referenced by the client's default service config.
const ServiceKey = "onexmesh.selector.service"
ServiceKey is the resolver address attribute key carrying the service name, used to key per-service selector state so strategies like p2c keep their adaptive state across picker rebuilds without leaking between services.
const StrategyKey = "onexmesh.selector.strategy"
StrategyKey is the resolver address attribute key carrying the selector strategy (e.g. "round_robin", "weighted", "p2c").
const WeightKey = "onexmesh.selector.weight"
WeightKey is the resolver address attribute key carrying the node's static weight, so the weighted selector strategy works on the gRPC path (not just HTTP).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.