Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 142 for weighted (0.25 sec)

  1. pilot/pkg/networking/core/listener_waypoint.go

    					HostRewriteLiteral: operations.Authority,
    				}
    			}
    		}
    
    		weighted = append(weighted, clusterWeight)
    	}
    
    	// rewrite to a single cluster if there is only weighted cluster
    	if len(weighted) == 1 {
    		action.ClusterSpecifier = &route.RouteAction_Cluster{Cluster: weighted[0].Name}
    		out.RequestHeadersToAdd = append(out.RequestHeadersToAdd, weighted[0].RequestHeadersToAdd...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    	// by providing weights in LocalityLbEndpoints via load_balancing_weight.
    	// By setting weights across different localities, it can allow
    	// Envoy to do weighted load balancing across different zones and geographical locations.
    	for _, localityWeightSetting := range distribute {
    		if localityWeightSetting != nil &&
    			util.LocalityMatch(locality, localityWeightSetting.From) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/networkfilter.go

    		if route.Weight > 0 {
    			clusterName := istioroute.GetDestinationCluster(route.Destination, service, port.Port)
    			clusterSpecifier.WeightedClusters.Clusters = append(clusterSpecifier.WeightedClusters.Clusters, &tcp.TcpProxy_WeightedCluster_ClusterWeight{
    				Name:   clusterName,
    				Weight: uint32(route.Weight),
    			})
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. pilot/pkg/xds/eds_test.go

    	adscConn := s.Connect(nil, nil, watchEds)
    	endpoints := adscConn.GetEndpoints()
    	lbe, f := endpoints["outbound|80||weighted.static.svc.cluster.local"]
    	if !f || len(lbe.Endpoints) == 0 {
    		t.Fatalf("No lb endpoints for %v, %v", "outbound|80||weighted.static.svc.cluster.local", adscConn.EndpointsJSON())
    	}
    	expected := map[string]uint32{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  5. src/cmd/gofmt/gofmt.go

    // (if any) and will cause a nonzero final exit code.
    func (s *sequencer) Add(weight int64, f func(*reporter) error) {
    	if weight < 0 || weight > s.maxWeight {
    		weight = s.maxWeight
    	}
    	if err := s.sem.Acquire(context.TODO(), weight); err != nil {
    		// Change the task from "execute f" to "report err".
    		weight = 0
    		f = func(*reporter) error { return err }
    	}
    
    	r := &reporter{prev: s.prev}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  6. pkg/config/validation/virtualservice_test.go

    			}},
    		}, valid: false},
    		{name: "weighted", route: &networking.HTTPRoute{
    			Route: []*networking.HTTPRouteDestination{{
    				Destination: &networking.Destination{Host: "foo.baz.south"},
    				Weight:      25,
    			}, {
    				Destination: &networking.Destination{Host: "foo.baz.east"},
    				Weight:      75,
    			}},
    		}, valid: true},
    		{name: "total weight > 100", route: &networking.HTTPRoute{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 15:33:55 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py

            value.
          quant_max: The maximum real value that can be represented by a quantized
            value.
    
        Returns:
          (error, quant_min, quant_max): Tuple of weighted mean squared error.
          error = (hist_mids - dequantized_hist_mids)**2 * hist_freq
        """
        dequantized_hist_mids = self._get_dequantized_hist_mids_after_quantize(
            quant_min, quant_max
        )
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/networkfilter_test.go

    						Port:   &networking.PortSelector{Number: 443},
    						Subset: "prod",
    					},
    					Weight: 75,
    				},
    				{
    					Destination: &networking.Destination{
    						Host:   "example-canary.com",
    						Port:   &networking.PortSelector{Number: 443},
    						Subset: "canary",
    					},
    					Weight: 25,
    				},
    			},
    		},
    	}
    
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. pilot/pkg/xds/mesh_network_test.go

    				"": {xdstest.LocLbEpInfo{
    					LbEps: []xdstest.LbEpInfo{
    						{Address: "1.2.3.4", Weight: 1},
    						{Address: "2.2.2.2", Weight: 2},
    					},
    					Weight: 3,
    				}},
    				"v1": {xdstest.LocLbEpInfo{
    					LbEps: []xdstest.LbEpInfo{
    						{Address: "1.2.3.4", Weight: 1},
    						{Address: "2.2.2.2", Weight: 1},
    					},
    					Weight: 2,
    				}},
    				"v2": {xdstest.LocLbEpInfo{
    					LbEps: []xdstest.LbEpInfo{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/conversion_test.go

    		validationIgnorer *crdvalidation.ValidationIgnorer
    	}{
    		{name: "http"},
    		{name: "tcp"},
    		{name: "tls"},
    		{name: "grpc"},
    		{name: "mismatch"},
    		{name: "weighted"},
    		{name: "zero"},
    		{name: "mesh"},
    		{
    			name: "invalid",
    			validationIgnorer: crdvalidation.NewValidationIgnorer(
    				"default/^invalid-backendRef-kind-",
    				"default/^invalid-backendRef-mixed-",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 20:24:52 UTC 2024
    - 34.9K bytes
    - Viewed (0)
Back to top