Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for leaderOn (0.29 sec)

  1. pilot/pkg/leaderelection/k8sleaderelection/metrics.go

    type defaultLeaderMetrics struct {
    	// leader's value indicates if the current process is the owner of name lease
    	leader SwitchMetric
    }
    
    func (m *defaultLeaderMetrics) leaderOn(name string) {
    	if m == nil {
    		return
    	}
    	m.leader.On(name)
    }
    
    func (m *defaultLeaderMetrics) leaderOff(name string) {
    	if m == nil {
    		return
    	}
    	m.leader.Off(name)
    }
    
    type noMetrics struct{}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 11 16:58:48 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/k8sleaderelection/leaderelection.go

    	OnStoppedLeading func()
    	// OnNewLeader is called when the client observes a leader that is
    	// not the previously observed leader. This includes the first observed
    	// leader when the client starts.
    	OnNewLeader func(identity string)
    }
    
    // LeaderElector is a leader election client.
    type LeaderElector struct {
    	config LeaderElectionConfig
    	// internal bookkeeping
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 24 04:04:42 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  3. releasenotes/notes/multicluster-leader-election.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: traffic-management
    issue:
    - 47901
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 17 17:09:18 UTC 2023
    - 189 bytes
    - Viewed (0)
  4. releasenotes/notes/disable-leader-elect.yaml

    docs:
     - '[reference] https://istio.io/latest/docs/reference/commands/pilot-discovery/'
    
    releaseNotes:
    - |
      **Added** an `ENABLE_LEADER_ELECTION=false` feature flag for pilot-discovery
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Sep 26 18:29:36 UTC 2022
    - 374 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/pgen.go

    		if mls != nil && mls.IsLeader(n) {
    			leaders[n] = -s.stksize
    		}
    	}
    
    	if mls != nil {
    		// Update offsets of followers (subsumed vars) to be the
    		// same as the leader var in their partition.
    		for i := 0; i < len(fn.Dcl); i++ {
    			n := fn.Dcl[i]
    			if !mls.Subsumed(n) {
    				continue
    			}
    			leader := mls.Leader(n)
    			off, ok := leaders[leader]
    			if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. pilot/pkg/leaderelection/leaderelection.go

    	// Store as field for testing
    	le *k8sleaderelection.LeaderElector
    	mu sync.RWMutex
    }
    
    // Run will start leader election, calling all runFns when we become the leader.
    // If leader election is disabled, it skips straight to the runFns.
    func (l *LeaderElection) Run(stop <-chan struct{}) {
    	if !l.enabled {
    		log.Infof("bypassing leader election: %v", l.electionID)
    		for _, f := range l.runFns {
    			go f(stop)
    		}
    		<-stop
    		return
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  7. cluster/addons/addon-manager/kube-addons.sh

      case "${KUBE_CONTROLLER_MANAGER_LEADER}" in
      "")
        log ERR "No leader election info found."
        return 1
        ;;
    
      "${HOSTNAME}"_*)
        log INFO "Leader is $KUBE_CONTROLLER_MANAGER_LEADER"
        return 0
        ;;
    
      *)
        log INFO "Leader is $KUBE_CONTROLLER_MANAGER_LEADER, not ${HOSTNAME}_*"
        return 1
        ;;
      esac
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 15 05:40:38 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  8. cmd/kube-scheduler/app/server_test.go

    				ContentType: "application/vnd.kubernetes.protobuf",
    				QPS:         50,
    				Burst:       100,
    			},
    		},
    		{
    			name: "leader election CLI args, without --config arg",
    			flags: []string{
    				"--leader-elect=false",
    				"--leader-elect-lease-duration=2h",
    				"--leader-elect-resource-namespace=default",
    				"--kubeconfig", configKubeconfig, // deprecated CLI arg is honored if --config is not specified
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. pilot/pkg/leaderelection/k8sleaderelection/healthzadaptor.go

    // It helps deal with the /healthz endpoint being set up prior to the LeaderElection.
    // This contains the code needed to act as an adaptor between the leader
    // election code the health check code. It allows us to provide health
    // status about the leader election. Most specifically about if the leader
    // has failed to renew without exiting the process. In that case we should
    // report not healthy and rely on the kubelet to take down the process.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 11 16:58:48 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  10. cmd/kube-scheduler/app/options/options.go

    	leaderelection := o.Flags.FlagSet("leader election")
    	if leaderelection.Changed("leader-elect") {
    		cfg.LeaderElection.LeaderElect = o.LeaderElection.LeaderElect
    	}
    	if leaderelection.Changed("leader-elect-lease-duration") {
    		cfg.LeaderElection.LeaseDuration = o.LeaderElection.LeaseDuration
    	}
    	if leaderelection.Changed("leader-elect-renew-deadline") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 17 17:06:29 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top