Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 165 for localisty (0.15 sec)

  1. pkg/test/loadbalancersim/mesh/mesh.go

    	m.nodes.ShutDown()
    }
    
    func (m *Instance) NewNodes(count int, serviceTime time.Duration, enableQueueLatency bool, locality locality.Instance) Nodes {
    	out := make(Nodes, 0, count)
    	for i := 0; i < count; i++ {
    		name := fmt.Sprintf("%s_%d", locality, i)
    		out = append(out, newNode(name, serviceTime, enableQueueLatency, locality))
    	}
    
    	m.nodes = append(m.nodes, out...)
    
    	return out
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 27 20:55:37 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. pkg/bootstrap/platform/platform.go

    type Unknown struct{}
    
    // Metadata returns an empty map.
    func (*Unknown) Metadata() map[string]string {
    	return map[string]string{}
    }
    
    // Locality returns an empty core.Locality struct.
    func (*Unknown) Locality() *core.Locality {
    	return &core.Locality{}
    }
    
    // Labels returns an empty map.
    func (*Unknown) Labels() map[string]string {
    	return map[string]string{}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 07 20:19:01 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  3. pkg/test/loadbalancersim/loadbalancer/priority.go

    type PrioritySelector func(src *mesh2.Client, dest *mesh2.Node) uint32
    
    func LocalityPrioritySelector(src *mesh2.Client, dest *mesh2.Node) uint32 {
    	priority := uint32(2)
    	if src.Locality().Region == dest.Locality().Region {
    		priority = 1
    		if src.Locality().Zone == dest.Locality().Zone {
    			priority = 0
    		}
    	}
    	return priority
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 27 20:55:37 UTC 2022
    - 1017 bytes
    - Viewed (0)
  4. releasenotes/notes/45413.yaml

    L1:apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    
    issue:
      - 45413
    
    releaseNotes:
      - |
        **Fixed** VirtualMachine Workloadentry auto register failed with invalid `istio-locality` label when user specify `istio-locality` in ./etc/istio/pod/labels....
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 10:19:36 UTC 2023
    - 268 bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/util/label/label.go

    	}
    	if len(networkID) > 0 {
    		out[label.TopologyNetwork.Name] = networkID.String()
    	}
    	return out
    }
    
    // SplitLocalityLabel splits a locality label into region, zone and subzone strings.
    func SplitLocalityLabel(locality string) (region, zone, subzone string) {
    	items := strings.Split(locality, "/")
    	switch len(items) {
    	case 1:
    		return items[0], "", ""
    	case 2:
    		return items[0], items[1], ""
    	default:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 11 03:56:40 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. pilot/pkg/xds/endpoints/ep_filters.go

    	// iterating so that it can be used as the weight for the gateway endpoint
    	for _, ep := range endpoints {
    		lbEndpoints := &LocalityEndpoints{
    			llbEndpoints: endpoint.LocalityLbEndpoints{
    				Locality: ep.llbEndpoints.Locality,
    				Priority: ep.llbEndpoints.Priority,
    				// Endpoints and weight will be reset below.
    			},
    		}
    
    		// Create a map to keep track of the gateways used and their aggregate weights.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. pkg/test/loadbalancersim/mesh/client.go

    	"istio.io/istio/pkg/test/loadbalancersim/locality"
    	"istio.io/istio/pkg/test/loadbalancersim/network"
    )
    
    type ClientSettings struct {
    	RPS      int
    	Locality locality.Instance
    }
    
    type Client struct {
    	mesh *Instance
    	s    ClientSettings
    }
    
    func (c *Client) Mesh() *Instance {
    	return c.mesh
    }
    
    func (c *Client) Locality() locality.Instance {
    	return c.s.Locality
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 03 18:19:25 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/cluster_builder_test.go

    		sort.SliceStable(endpoints, func(i, j int) bool {
    			if strings.Compare(endpoints[i].Locality.Region, endpoints[j].Locality.Region) < 0 {
    				return true
    			}
    			if strings.Compare(endpoints[i].Locality.Zone, endpoints[j].Locality.Zone) < 0 {
    				return true
    			}
    			return strings.Compare(endpoints[i].Locality.SubZone, endpoints[j].Locality.SubZone) < 0
    		})
    	}
    
    	for _, tt := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/LocaleUtil.java

        /**
         * {@link Locale}を返します。
         *
         * @param localeStr
         *            ロケールを表す文字列
         * @return {@link Locale}
         */
        public static Locale getLocale(final String localeStr) {
            // TODO replace with Fess
            Locale locale = LocaleUtil.getDefault();
            if (localeStr != null) {
                final int index = localeStr.indexOf('_');
                if (index < 0) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. pilot/pkg/autoregistration/controller_test.go

    	var p1conn1, p1conn2 *fakeConn
    	p := fakeProxy("1.2.3.4", wgA, "nw1", "sa-a")
    	p.Locality = n.Locality
    
    	var p2conn1 *fakeConn
    	p2 := fakeProxy("1.2.3.4", wgA, "nw2", "sa-a")
    	p2.Locality = n.Locality
    
    	var p3conn1 *fakeConn
    	p3 := fakeProxy("1.2.3.5", wgA, "nw1", "sa-a")
    	p3.Locality = n.Locality
    
    	t.Run("initial registration", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 31.4K bytes
    - Viewed (0)
Back to top