Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MatchOtherZoneInSameRegion (0.32 sec)

  1. pkg/test/loadbalancersim/locality/match.go

    		return l.Zone == o.Zone &&
    			l.Region == o.Region
    	}
    }
    
    func MatchRegion(l Instance) Match {
    	return func(o Instance) bool {
    		return l.Region == o.Region
    	}
    }
    
    func MatchOtherZoneInSameRegion(l Instance) Match {
    	return And(MatchRegion(l), Not(MatchZone(l)))
    }
    
    func And(m1 Match, m2 Match) Match {
    	return func(o Instance) bool {
    		return m1(o) && m2(o)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 27 20:55:37 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  2. pkg/test/loadbalancersim/lb_test.go

    	clientLocality := c.Locality()
    	clientLatency := clientLatencies[0]
    
    	nodesSameZone := s.mesh.Nodes().Select(locality.MatchZone(clientLocality))
    	nodesSameRegion := s.mesh.Nodes().Select(locality.MatchOtherZoneInSameRegion(clientLocality))
    	nodesOtherRegion := s.mesh.Nodes().Select(locality.Not(locality.MatchRegion(clientLocality)))
    
    	// Store in the output.
    	qLatency := s.mesh.Nodes().QueueLatency().Data()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 19 23:29:30 UTC 2022
    - 11K bytes
    - Viewed (0)
Back to top