Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for refreshWeight (0.18 sec)

  1. pilot/pkg/xds/endpoints/ep_filters.go

    			// Currently gateway endpoint does not support tunnel.
    			lbEndpoints.append(gwIstioEp, gwEp)
    		}
    
    		// Endpoint members could be stripped or aggregated by network. Adjust weight value here.
    		lbEndpoints.refreshWeight()
    		filtered = append(filtered, lbEndpoints)
    	}
    
    	return filtered
    }
    
    // selectNetworkGateways chooses the gateways that best match the network and cluster. If there is
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. pilot/pkg/xds/endpoints/endpoint_builder.go

    	e.istioEndpoints = append(e.istioEndpoints, ep)
    	e.llbEndpoints.LbEndpoints = append(e.llbEndpoints.LbEndpoints, le)
    }
    
    func (e *LocalityEndpoints) refreshWeight() {
    	var weight *wrapperspb.UInt32Value
    	if len(e.llbEndpoints.LbEndpoints) == 0 {
    		weight = nil
    	} else {
    		weight = &wrapperspb.UInt32Value{}
    		for _, lbEp := range e.llbEndpoints.LbEndpoints {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top