Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 499 for weighted (0.63 sec)

  1. pkg/test/loadbalancersim/lb_test.go

    											// Create the new test output.
    											tm := &testMetrics{
    												hasNetworkLatency: networkLatencyCase.enable,
    												hasQueueLatency:   enableQueueLatency,
    												weighted:          weightCase.enableWeighting,
    												algorithm:         algorithmCase.name,
    												topology:          topologyCase.name,
    											}
    											sm = append(sm, tm)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 19 23:29:30 UTC 2022
    - 11K bytes
    - Viewed (0)
  2. pilot/pkg/config/kube/gateway/testdata/zero.yaml

          - name: httpbin-zero
            port: 8080
            weight: 0
      - matches:
        - path:
            type: PathPrefix
            value: /weighted-100
        backendRefs:
        - filters:
          - requestHeaderModifier:
              add:
              - name: foo
                value: bar
            type: RequestHeaderModifier
          port: 8000
          name: foo-svc
          weight: 100
    ---
    apiVersion: gateway.networking.k8s.io/v1alpha2
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 18 22:43:39 UTC 2023
    - 1.5K 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. pkg/test/echo/server/forwarder/executor.go

    	return &execGroup{
    		e:   e,
    		sem: semaphore.NewWeighted(int64(maxConcurrencyPerForward)),
    	}
    }
    
    type execGroup struct {
    	e   *executor
    	g   multierror.Group
    	sem *semaphore.Weighted
    }
    
    // Go runs the given work function asynchronously.
    func (g *execGroup) Go(ctx context.Context, work func() error) {
    	g.g.Go(func() error {
    		g.e.totalRequests.Inc()
    		g.e.activeRequests.Inc()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 10 18:09:08 UTC 2022
    - 2K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/route/route.go

    	} else {
    		weighted := make([]*route.WeightedCluster_ClusterWeight, 0)
    		for _, dst := range in.Route {
    			if dst.Weight == 0 {
    				// Ignore 0 weighted clusters if there are other clusters in the route.
    				continue
    			}
    			destinationweight, hostname := processWeightedDestination(dst, serviceRegistry, listenerPort, hashByDestination, action)
    			weighted = append(weighted, destinationweight)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K 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. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/integrator.go

    	Reset() IntegratorResults
    }
    
    // IntegratorResults holds statistical abstracts of the integration
    type IntegratorResults struct {
    	Duration  float64 //seconds
    	Average   float64 //time-weighted
    	Deviation float64 //standard deviation: sqrt(avg((value-avg)^2))
    	Min, Max  float64
    }
    
    // Equal tests for semantic equality.
    // This considers all NaN values to be equal to each other.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 17:37:20 UTC 2022
    - 5K bytes
    - Viewed (0)
  8. 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)
  9. src/crypto/internal/edwards25519/scalar_test.go

    var scOne, _ = new(Scalar).SetCanonicalBytes(scOneBytes[:])
    var scMinusOne, _ = new(Scalar).SetCanonicalBytes(scalarMinusOneBytes[:])
    
    // Generate returns a valid (reduced modulo l) Scalar with a distribution
    // weighted towards high, low, and edge values.
    func (Scalar) Generate(rand *mathrand.Rand, size int) reflect.Value {
    	var s [32]byte
    	diceRoll := rand.Intn(100)
    	switch {
    	case diceRoll == 0:
    	case diceRoll == 1:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/metrics.go

    	apiserverSeatDemandAverages = compbasemetrics.NewGaugeVec(
    		&compbasemetrics.GaugeOpts{
    			Namespace:      namespace,
    			Subsystem:      subsystem,
    			Name:           "demand_seats_average",
    			Help:           "Time-weighted average, over last adjustment period, of demand_seats",
    			StabilityLevel: compbasemetrics.ALPHA,
    		},
    		[]string{priorityLevel},
    	)
    	apiserverSeatDemandStandardDeviations = compbasemetrics.NewGaugeVec(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 19:40:05 UTC 2023
    - 25.6K bytes
    - Viewed (0)
Back to top