Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for LeaseDuration (0.48 sec)

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

    					LockConfig: resourceLockConfig,
    					Client:     c.CoordinationV1(),
    				}
    			}
    
    			lec := LeaderElectionConfig{
    				Lock:          lock,
    				KeyComparison: test.keyComparisonFunc,
    				LeaseDuration: 10 * time.Second,
    				Callbacks: LeaderCallbacks{
    					OnNewLeader: func(l string) {
    						defer wg.Done()
    						reportedLeader = l
    					},
    				},
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 23 16:39:43 UTC 2023
    - 42.5K bytes
    - Viewed (0)
  2. cluster/images/etcd/migrate/migrator.go

    	Backup(version *EtcdVersion, backupDir string) error
    	Snapshot(version *EtcdVersion, snapshotFile string) error
    	Restore(version *EtcdVersion, snapshotFile string) error
    	Migrate(version *EtcdVersion) error
    	AttachLease(leaseDuration time.Duration) error
    	Close() error
    }
    
    // Migrator manages etcd data migrations.
    type Migrator struct {
    	cfg           *EtcdMigrateCfg // TODO: don't wire this directly in
    	dataDirectory *DataDirectory
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 28 07:33:23 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  3. pkg/scheduler/apis/config/validation/validation_test.go

    			QPS:                10,
    			Burst:              10,
    		},
    		LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
    			ResourceLock:      "leases",
    			LeaderElect:       true,
    			LeaseDuration:     metav1.Duration{Duration: 30 * time.Second},
    			RenewDeadline:     metav1.Duration{Duration: 15 * time.Second},
    			RetryPeriod:       metav1.Duration{Duration: 5 * time.Second},
    			ResourceNamespace: "name",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. pilot/pkg/leaderelection/leaderelection.go

    			LockConfig: k8sresourcelock.ResourceLockConfig{
    				Identity: l.name,
    			},
    		}
    	}
    
    	config := k8sleaderelection.LeaderElectionConfig{
    		Lock:          lock,
    		LeaseDuration: l.ttl,
    		RenewDeadline: l.ttl / 2,
    		RetryPeriod:   l.ttl / 4,
    		Callbacks:     callbacks,
    		// When Pilot exits, the lease will be dropped. This is more likely to lead to a case where
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 16:44:32 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. cmd/kube-controller-manager/app/options/options_test.go

    				ControllerStartInterval: metav1.Duration{Duration: 2 * time.Minute},
    				LeaderElection: componentbaseconfig.LeaderElectionConfiguration{
    					ResourceLock:      "configmap",
    					LeaderElect:       false,
    					LeaseDuration:     metav1.Duration{Duration: 30 * time.Second},
    					RenewDeadline:     metav1.Duration{Duration: 15 * time.Second},
    					RetryPeriod:       metav1.Duration{Duration: 5 * time.Second},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 02:59:09 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. cmd/kube-controller-manager/app/controllermanager.go

    		logger.Error(err, "Error creating lock")
    		klog.FlushAndExit(klog.ExitFlushTimeout, 1)
    	}
    
    	leaderelection.RunOrDie(ctx, leaderelection.LeaderElectionConfig{
    		Lock:          rl,
    		LeaseDuration: c.ComponentConfig.Generic.LeaderElection.LeaseDuration.Duration,
    		RenewDeadline: c.ComponentConfig.Generic.LeaderElection.RenewDeadline.Duration,
    		RetryPeriod:   c.ComponentConfig.Generic.LeaderElection.RetryPeriod.Duration,
    		Callbacks:     callbacks,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 13:03:53 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  7. pkg/kubelet/kubelet.go

    		klet.appArmorValidator = apparmor.NewValidator()
    		klet.softAdmitHandlers.AddPodAdmitHandler(lifecycle.NewAppArmorAdmitHandler(klet.appArmorValidator))
    	}
    
    	leaseDuration := time.Duration(kubeCfg.NodeLeaseDurationSeconds) * time.Second
    	renewInterval := time.Duration(float64(leaseDuration) * nodeLeaseRenewIntervalFraction)
    	klet.nodeLeaseController = lease.NewController(
    		klet.clock,
    		klet.heartbeatClient,
    		string(klet.nodeName),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
Back to top