Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 232 for Shards (0.15 sec)

  1. pilot/pkg/model/endpointshards.go

    	es.RLock()
    	defer es.RUnlock()
    	res := &EndpointShards{
    		Shards:          make(map[ShardKey][]*IstioEndpoint, len(es.Shards)),
    		ServiceAccounts: es.ServiceAccounts.Copy(),
    	}
    	for k, v := range es.Shards {
    		res.Shards[k] = make([]*IstioEndpoint, 0, len(v))
    		for _, ep := range v {
    			res.Shards[k] = append(res.Shards[k], ep.DeepCopy())
    		}
    	}
    	return res
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. docs/debugging/xl-meta/main.go

    									valid := 0
    									for shardIdx, shard := range splitFilled[:k] {
    										shardConfig[shardIdx] = shard[offset]
    										valid += int(shard[offset])
    										if shard[offset] == 0 {
    											shards[shardIdx] = shards[shardIdx][:0]
    										} else {
    											shards[shardIdx] = append(shards[shardIdx][:0], splitData[shardIdx][offset])
    										}
    									}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  3. pilot/pkg/xds/endpoints/ep_filters_test.go

    			}
    			ep.Labels["app"] = "example"
    			ep.Locality.ClusterID = sk.Cluster
    			shards.Shards[sk][i] = ep
    		}
    	}
    	// convert to EndpointIndex
    	index := model.NewEndpointIndex(model.NewXdsCache())
    	for shardKey, testEps := range shards.Shards {
    		svc, _ := index.GetOrCreateEndpointShard("example.ns.svc.cluster.local", "ns")
    		svc.Lock()
    		svc.Shards[shardKey] = testEps
    		svc.Unlock()
    	}
    	return index
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  4. pilot/pkg/xds/endpoints/endpoint_builder.go

    	shards := b.findShards(endpointIndex)
    	if shards == nil {
    		return nil
    	}
    
    	// Determine whether or not the target service is considered local to the cluster
    	// and should, therefore, not be accessed from outside the cluster.
    	isClusterLocal := b.clusterLocal
    	var eps []*model.IstioEndpoint
    	shards.RLock()
    	defer shards.RUnlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. pilot/pkg/xds/eds.go

    func (s *DiscoveryServer) SvcUpdate(shard model.ShardKey, hostname string, namespace string, event model.Event) {
    	// When a service deleted, we should cleanup the endpoint shards and also remove keys from EndpointIndex to
    	// prevent memory leaks.
    	if event == model.EventDelete {
    		inboundServiceDeletes.Increment()
    		s.Env.EndpointIndex.DeleteServiceShard(shard, hostname, namespace, false)
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 15:58:06 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/run.bash

    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    # Environment variables that control run.bash:
    #
    # GO_TEST_SHARDS: number of "dist test" test shards that the
    # $GOROOT/test directory will be sliced up into for parallel
    # execution. Defaults to 1, unless GO_BUILDER_NAME is also specified,
    # in which case it defaults to 10.
    #
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:02:23 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

                public void onResponse(final SearchResponse searchResponse) {
                    if (searchResponse.getFailedShards() > 0) {
                        deferred.reject(new SuggesterException("Search failure. Failed shards num:" + searchResponse.getFailedShards()));
                    } else {
                        deferred.resolve(createResponse(searchResponse));
                    }
                }
    
                @Override
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/serviceentry/controller.go

    	}
    }
    
    // doEdsCacheUpdate invokes XdsUpdater's EDSCacheUpdate to update endpoint shards.
    func (s *Controller) doEdsCacheUpdate(keys sets.Set[instancesKey]) {
    	endpoints := s.buildEndpoints(keys)
    	shard := model.ShardKeyFromRegistry(s)
    	// This is delete.
    	if len(endpoints) == 0 {
    		for k := range keys {
    			s.XdsUpdater.EDSCacheUpdate(shard, string(k.hostname), k.namespace, nil)
    		}
    	} else {
    		for k, eps := range endpoints {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/serviceregistry_test.go

    	shards, ok := endpoints.ShardsForService(string(s.Hostname), s.Attributes.Namespace)
    	if !ok {
    		return nil
    	}
    	var pn string
    	for _, p := range s.Ports {
    		if p.Port == port {
    			pn = p.Name
    			break
    		}
    	}
    	if pn == "" && port != 0 {
    		return nil
    	}
    	shards.RLock()
    	defer shards.RUnlock()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  10. src/cmd/internal/testdir/testdir_test.go

    	force          = flag.Bool("f", false, "ignore expected-failure test lists")
    	target         = flag.String("target", "", "cross-compile tests for `goos/goarch`")
    
    	shard  = flag.Int("shard", 0, "shard index to run. Only applicable if -shards is non-zero.")
    	shards = flag.Int("shards", 0, "number of shards. If 0, all tests are run. This is used by the continuous build.")
    )
    
    // defaultAllCodeGen returns the default value of the -all_codegen
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top