Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for unweighted (0.17 sec)

  1. pilot/pkg/xds/mesh_network_test.go

    		w.testUnweighted(t, s)
    		w.testWeighted(t, s)
    	})
    }
    
    func (w *workload) testUnweighted(t *testing.T, s *xds.FakeDiscoveryServer) {
    	if w.expectations == nil {
    		return
    	}
    	t.Run("unweighted", func(t *testing.T) {
    		// wait for eds cache update
    		retry.UntilSuccessOrFail(t, func() error {
    			eps := xdstest.ExtractLoadAssignments(s.Endpoints(w.proxy))
    
    			for c, want := range w.expectations {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. 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)
  3. pilot/pkg/xds/eds_sh_test.go

    	tests := []struct {
    		network   string
    		sidecarID string
    		want      expectedResults
    	}{
    		{
    			// Verify that EDS from network1 will return 1 local endpoint with local VIP + 2 remote
    			// endpoints weighted accordingly with the IP of the ingress gateway.
    			network:   "network1",
    			sidecarID: sidecarID("10.1.0.1", "app3"),
    			want: expectedResults{
    				weights: map[string]uint32{
    					// 1 local endpoint
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    		return
    	}
    
    	// Support Locality weighted load balancing
    	// (https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight#locality-weighted-load-balancing)
    	// 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.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/networkfilter.go

    				Name:   clusterName,
    				Weight: uint32(route.Weight),
    			})
    		}
    	}
    
    	// For weighted clusters set hash policy if any of the upstream destinations have sourceIP.
    	maybeSetHashPolicy(destinationRule, tcpProxy, "")
    	// In case of weighted clusters, tunneling config for a subset is ignored,
    	// because it is set on listener, not on a cluster.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/gofmt/gofmt.go

    }
    
    // A sequencer performs concurrent tasks that may write output, but emits that
    // output in a deterministic order.
    type sequencer struct {
    	maxWeight int64
    	sem       *semaphore.Weighted   // weighted by input bytes (an approximate proxy for memory overhead)
    	prev      <-chan *reporterState // 1-buffered
    }
    
    // newSequencer returns a sequencer that allows concurrent tasks up to maxWeight
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  8. 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)
  9. pkg/config/validation/virtualservice_test.go

    			}},
    		}, valid: true},
    		{name: "no destination", route: &networking.HTTPRoute{
    			Route: []*networking.HTTPRouteDestination{{
    				Destination: nil,
    			}},
    		}, valid: false},
    		{name: "weighted", route: &networking.HTTPRoute{
    			Route: []*networking.HTTPRouteDestination{{
    				Destination: &networking.Destination{Host: "foo.baz.south"},
    				Weight:      25,
    			}, {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 15:33:55 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/networkfilter_test.go

    							IdleTimeout: durationpb.New(1 * time.Minute),
    						},
    					},
    				},
    			},
    			routes: singleDestination,
    		},
    		{
    			name:                 "weighted routes, valid ISTIO_META_IDLE_TIMEOUT ignored, because destination rule with idle timeout exists",
    			istioMetaIdleTimeout: "30s",
    			expected:             durationpb.New(1 * time.Minute),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top