Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for unweighted (0.48 sec)

  1. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    func NewWeighted(n int64) *Weighted {
    	w := &Weighted{size: n}
    	return w
    }
    
    // Weighted provides a way to bound concurrent access to a resource.
    // The callers can request access with a given weight.
    type Weighted struct {
    	size    int64
    	cur     int64
    	mu      sync.Mutex
    	waiters list.List
    }
    
    // Acquire acquires the semaphore with a weight of n, blocking until resources
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K 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/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)
  4. 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)
  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. 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)
  7. pilot/pkg/networking/core/route/route_test.go

    					{
    						Destination: &networking.Destination{
    							Host:   "c-weighted.extsvc.com",
    							Subset: "v2",
    						},
    						Weight: 100,
    					},
    				},
    			},
    			{
    				Route: []*networking.HTTPRouteDestination{
    					{
    						Destination: &networking.Destination{
    							Host:   "c-weighted.extsvc.com",
    							Subset: "v1",
    						},
    						Weight: 100,
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. pilot/pkg/networking/core/cluster_builder.go

    	}
    	// clusters with discovery type STATIC, STRICT_DNS rely on cluster.LoadAssignment field.
    	// ServiceEntry's need to filter hosts based on subset.labels in order to perform weighted routing
    	var lbEndpoints []*endpoint.LocalityLbEndpoints
    
    	isPassthrough := subset.GetTrafficPolicy().GetLoadBalancer().GetSimple() == networking.LoadBalancerSettings_PASSTHROUGH
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 31.6K bytes
    - Viewed (0)
Back to top