Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for localisty (0.16 sec)

  1. pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go

    		cluster := buildFakeCluster()
    		ApplyLocalityLoadBalancer(cluster.LoadAssignment, nil, locality, nil, env.Mesh().LocalityLbSetting, true)
    		for _, localityEndpoint := range cluster.LoadAssignment.Endpoints {
    			if localityEndpoint.Locality.Region == locality.Region {
    				if localityEndpoint.Locality.Zone == locality.Zone {
    					if localityEndpoint.Locality.SubZone == locality.SubZone {
    						g.Expect(localityEndpoint.Priority).To(Equal(uint32(0)))
    						continue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/loadbalancer/loadbalancer.go

    				applyLocalityFailover(locality, loadAssignment, localityLB.Failover)
    			}
    		} else {
    			// Apply default failover settings or user defined region failover settings.
    			applyLocalityFailover(locality, loadAssignment, localityLB.Failover)
    		}
    	}
    }
    
    // set locality loadbalancing weight based on user defined weights.
    func applyLocalityWeights(
    	locality *core.Locality,
    	loadAssignment *endpoint.ClusterLoadAssignment,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. pilot/pkg/networking/util/util_test.go

    	tests := []struct {
    		name     string
    		locality string
    		want     *core.Locality
    		reverse  string
    	}{
    		{
    			name:     "nil locality",
    			locality: "",
    			want:     &core.Locality{},
    		},
    		{
    			name:     "locality with only region",
    			locality: "region",
    			want: &core.Locality{
    				Region: "region",
    			},
    		},
    		{
    			name:     "locality with region and zone",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  4. 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)
  5. pkg/model/proxy.go

    	}
    	return ""
    }
    
    // ConvertLocality converts '/' separated locality string to Locality struct.
    func ConvertLocality(locality string) *core.Locality {
    	if locality == "" {
    		return &core.Locality{}
    	}
    
    	region, zone, subzone := label.SplitLocalityLabel(locality)
    	return &core.Locality{
    		Region:  region,
    		Zone:    zone,
    		SubZone: subzone,
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 17:18:17 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. pilot/pkg/xds/eds_test.go

    		"region2/zone2/subzone2",
    	}
    	for i, locality := range localities {
    		_, _ = i, locality
    		m.AddInstance(&model.ServiceInstance{
    			Service: svc,
    			Endpoint: &model.IstioEndpoint{
    				Address:         fmt.Sprintf("10.0.0.%v", i),
    				EndpointPort:    80,
    				ServicePortName: "http",
    				Locality:        model.Locality{Label: locality},
    			},
    			ServicePort: &model.Port{
    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. pilot/pkg/networking/util/util.go

    		return hosts[i].Name < hosts[j].Name
    	})
    }
    
    // ConvertLocality converts '/' separated locality string to Locality struct.
    func ConvertLocality(locality string) *core.Locality {
    	return pm.ConvertLocality(locality)
    }
    
    // LocalityToString converts Locality struct to '/' separated locality string.
    func LocalityToString(l *core.Locality) string {
    	if l == nil {
    		return ""
    	}
    	resp := l.Region
    	if l.Zone == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. pkg/config/validation/agent/validation.go

    				return fmt.Errorf("locality %s wildcard '*' number can not exceed 1 and must be in the end", locality)
    			}
    		}
    		if _, exist := regionZoneSubZoneMap["*"]; exist {
    			return fmt.Errorf("locality %s overlap with previous specified ones", locality)
    		}
    
    		region, zone, subZone, localityIndex, err := getLocalityParam(locality)
    		if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/serviceentry/conversion.go

    	}
    	networkID := s.workloadEntryNetwork(wle)
    	locality := wle.Locality
    	if locality == "" && len(wle.Labels[model.LocalityLabel]) > 0 {
    		locality = model.GetLocalityLabel(wle.Labels[model.LocalityLabel])
    	}
    	labels := labelutil.AugmentLabels(wle.Labels, clusterID, locality, "", networkID)
    	return &model.ServiceInstance{
    		Endpoint: &model.IstioEndpoint{
    			Address:         addr,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java

            pluginIssues.reportPluginIssue(locality, null, issue);
            mayReportInline(session, locality, issue);
        }
    
        @Override
        public void reportPluginValidationIssue(
                IssueLocality locality, MavenSession mavenSession, MojoDescriptor mojoDescriptor, String issue) {
            String pluginKey = pluginKey(mojoDescriptor);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 23 12:25:04 UTC 2024
    - 17.7K bytes
    - Viewed (0)
Back to top