Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for DRAINING (0.26 sec)

  1. pilot/cmd/pilot-agent/status/ready/probe.go

    	}
    	return err
    }
    
    type ServerInfoState int32
    
    const (
    	// Server is live and serving traffic.
    	Live ServerInfoState = 0
    	// Server is draining listeners in response to external health checks failing.
    	Draining ServerInfoState = 1
    	// Server has not yet completed cluster manager initialization.
    	PreInitializing ServerInfoState = 2
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. pkg/envoy/agent.go

    }
    
    func (a *Agent) DisableDraining() {
    	a.skipDrain.Store(true)
    }
    
    func (a *Agent) DrainNow() {
    	log.Infof("Agent draining proxy")
    	err := a.proxy.Drain(true)
    	if err != nil {
    		log.Warnf("Error in invoking drain listeners endpoint: %v", err)
    	}
    	// If we drained now, skip draining + waiting later
    	// When we terminate, we will instead exit immediately
    	a.DisableDraining()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 16:04:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/envoy/proxy.go

    }
    
    func (e *envoy) Drain(skipExit bool) error {
    	adminPort := uint32(e.AdminPort)
    
    	err := DrainListeners(adminPort, e.Sidecar, skipExit)
    	if err != nil {
    		log.Infof("failed draining listeners for Envoy on port %d: %v", adminPort, err)
    	}
    	return err
    }
    
    func (e *envoy) UpdateConfig(config []byte) error {
    	return os.WriteFile(e.ConfigPath, config, 0o666)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. 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)
  9. pilot/cmd/pilot-agent/options/options.go

    	exitOnZeroActiveConnectionsEnv = env.Register("EXIT_ON_ZERO_ACTIVE_CONNECTIONS",
    		false,
    		"When set to true, terminates proxy when number of active connections become zero during draining").Get()
    
    	useExternalWorkloadSDSEnv = env.Register("USE_EXTERNAL_WORKLOAD_SDS", false,
    		"When set to true, the istio-agent will require an external SDS and will throw an error if the workload SDS socket is not found").Get()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 09 19:21:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. 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)
Back to top