Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for DRAINING (0.15 sec)

  1. pilot/pkg/features/experimental.go

    		"If not empty, services with this label will use header based persistent sessions",
    	).Get()
    
    	DrainingLabel = env.Register(
    		"PILOT_DRAINING_LABEL",
    		"istio.io/draining",
    		"If not empty, endpoints with the label value present will be sent with status DRAINING.",
    	).Get()
    
    	EnableDistributionTracking = env.Register(
    		"PILOT_ENABLE_CONFIG_DISTRIBUTION_TRACKING",
    		false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. pilot/pkg/xds/endpoints/endpoint_builder.go

    	if !features.SendUnhealthyEndpoints.Load() && ep.HealthStatus == model.UnHealthy {
    		return false
    	}
    	// Draining endpoints are only sent to 'persistent session' clusters.
    	draining := ep.HealthStatus == model.Draining ||
    		features.DrainingLabel != "" && ep.Labels[features.DrainingLabel] != ""
    	if draining {
    		persistentSession := b.service.Attributes.Labels[features.PersistentSessionLabel] != ""
    		if !persistentSession {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 02:18:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. src/time/tick_test.go

    	// When using Go 1.23 sync timers/tickers, draining is never needed
    	// (that's the whole point of the sync timer/ticker change).
    	drain1 := func() {
    		for range drainTries {
    			select {
    			case <-C:
    				return
    			default:
    			}
    			Sleep(sched)
    		}
    	}
    
    	// drainAsync removes potential stale time values after Stop/Reset.
    	// When using Go 1 async timers, draining one or two values
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. pilot/pkg/networking/grpcgen/grpcgen_test.go

    		}
    		if len(ep.GetEndpoints()) == 0 {
    			t.Fatal("No endpoint not found for persistent session cluster")
    		}
    		lbep1 := ep.GetEndpoints()[0]
    		if lbep1.LbEndpoints[0].HealthStatus.Number() != 3 {
    			t.Fatal("Draining status not included")
    		}
    	})
    
    	t.Run("gRPC-dial", func(t *testing.T) {
    		for _, host := range []string{
    			testSvcHost,
    			//"istiod.istio-system.svc",
    			//"istiod.istio-system",
    			//"istiod",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 09:04:02 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    		svc != nil &&
    		svc.Attributes.Labels[features.PersistentSessionLabel] != "" &&
    		(e.Conditions.Serving == nil || *e.Conditions.Serving) &&
    		(e.Conditions.Terminating == nil || *e.Conditions.Terminating) {
    		return model.Draining
    	}
    
    	return model.UnHealthy
    }
    
    func (esc *endpointSliceController) updateEndpointCacheForSlice(hostName host.Name, slice *v1.EndpointSlice) {
    	var endpoints []*model.IstioEndpoint
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/cluster.go

    				// status received in EDS. With this setting, the DRAINING and UNHEALTHY endpoints are kept - both marked
    				// as UNHEALTHY ('coarse state'), which is what will show in config dumps.
    				// DRAINING/UNHEALTHY will not be used normally for new requests. They will be used if cookie/header
    				// selects them.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher_test.go

    				ResourceVersion: fmt.Sprintf("%d", rv),
    			},
    		},
    		ResourceVersion: rv,
    	}
    }
    
    // TestCacheWatcherDraining verifies the cacheWatcher.process goroutine is properly cleaned up when draining was requested
    func TestCacheWatcherDraining(t *testing.T) {
    	var lock sync.RWMutex
    	var w *cacheWatcher
    	count := 0
    	filter := func(string, labels.Set, fields.Set) bool { return true }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  8. pilot/pkg/model/service.go

    }
    
    // Endpoint health status.
    type HealthStatus int32
    
    const (
    	// Healthy.
    	Healthy HealthStatus = 1
    	// Unhealthy.
    	UnHealthy HealthStatus = 2
    	// Draining - the constant matches envoy
    	Draining HealthStatus = 3
    )
    
    // IstioEndpoint defines a network address (IP:port) associated with an instance of the
    // service. A service has one or more instances each running in a
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 02:03:58 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  9. pkg/bootstrap/config.go

    	rbacEnvoyStatsMatcherInclusionSuffix = "rbac.allowed,rbac.denied,shadow_allowed,shadow_denied"
    
    	requiredEnvoyStatsMatcherInclusionSuffixes = rbacEnvoyStatsMatcherInclusionSuffix + ",downstream_cx_active" // Needed for draining.
    
    	// required for metrics based on stat_prefix in virtual service.
    	requiredEnvoyStatsMatcherInclusionRegexes = `vhost\.*\.route\.*`
    
    	// Prefixes of V2 metrics.
    	// "reporter" prefix is for istio standard metrics.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. cluster/gce/upgrade.sh

      if [[ "${kubectl_rc}" != 0 ]]; then
        echo "== FAILED to get bootID ${instance} =="
        echo "${boot_id}"
        return ${kubectl_rc}
      fi
    
      # Drain node
      echo "== Draining ${instance}. == " >&2
      local drain_rc
      "${KUBE_ROOT}/cluster/kubectl.sh" drain --delete-emptydir-data --force --ignore-daemonsets "${instance}" \
        && drain_rc=$? || drain_rc=$?
      if [[ "${drain_rc}" != 0 ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 21:13:22 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top