Open derekwin opened 5 months ago
Assume you mean the ads mode, right? And this is also missing in workload mode.
@derekwin We need to prioritize implementation in the workload mode.
Make adjustments to the proposal: focus on the implementation of locality load balancing under the workload model.
bpf\kmesh\workload\include\service.h
, new load banlance handler function is similar to lb_random_handle
.(locality failover, locality weighted distribution, ref)load_balancing_weight
and priority
configurations from api/endpoint/endpoint.proto
interface, and obtain the Locality
configuration from api/workloadapi/workload.proto
.Locality load balance
configuration field to pkg\controller\config.go
.api/cluster/cluster.proto
.more details: document
/assign @derekwin
Why:
Currently, kmesh does not support locality topology-aware load balancing. The purpose of this proposal is to add locality-based topology-aware load balancing capabilities to kmesh, corresponding to locality load balancing in Istio.
Plan:
more detials: https://zrsnlqw1xd.feishu.cn/docx/Qpr6dtfe8olpBcx5HNscLotdn8c?from=from_copylink