- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 159 for pleg (0.59 sec)
-
pkg/kubelet/pleg/pleg.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package pleg import ( "time" "k8s.io/apimachinery/pkg/types" kubecontainer "k8s.io/kubernetes/pkg/kubelet/container" ) // PodLifeCycleEventType define the event type of pod life cycle events.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 26 16:14:26 UTC 2023 - 2.7K bytes - Viewed (0) -
pkg/kubelet/pleg/generic_test.go
assert.False(t, ok, "pleg should be unhealthy") // Advance the clock without any relisting. clock.Step(time.Minute * 10) ok, _ = pleg.Healthy() assert.False(t, ok, "pleg should be unhealthy") // Relist and than advance the time by 1 minute. pleg should be healthy // because this is within the allowed limit. pleg.Relist() clock.Step(time.Minute * 1) ok, _ = pleg.Healthy() assert.True(t, ok, "pleg should be healthy")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 24.8K bytes - Viewed (0) -
pkg/kubelet/pleg/generic.go
// retried during the next relisting. podsToReinspect map[types.UID]*kubecontainer.Pod // Stop the Generic PLEG by closing the channel. stopCh chan struct{} // Locks the relisting of the Generic PLEG relistLock sync.Mutex // Indicates if the Generic PLEG is running or not isRunning bool // Locks the start/stop operation of Generic PLEG runningMu sync.Mutex // Indicates relisting related parameters relistDuration *RelistDuration
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 19.3K bytes - Viewed (0) -
pkg/kubelet/pleg/evented.go
if isEventedPLEGInUse() { // Fall back to Generic PLEG relisting since Evented PLEG is not working. klog.V(4).InfoS("Fall back to Generic PLEG relisting since Evented PLEG is not working") e.Stop() e.genericPleg.Stop() // Stop the existing Generic PLEG which runs with longer relisting period when Evented PLEG is in use.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 10:46:06 UTC 2024 - 16.4K bytes - Viewed (0) -
pkg/kubelet/pleg/evented_test.go
for _, event := range events[5:] { pleg.eventChannel <- event } // pleg is unhealthy when channel is out of capacity isHealthy, err = pleg.Healthy() require.Error(t, err) assert.Equal(t, false, isHealthy) } func TestUpdateRunningPodMetric(t *testing.T) { metrics.Register() pleg := newTestEventedPLEG() podStatuses := make([]*kubecontainer.PodStatus, 5) for i := range podStatuses {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 01 07:45:05 UTC 2023 - 6.4K bytes - Viewed (0) -
pkg/kubelet/pleg/doc.go
See the License for the specific language governing permissions and limitations under the License. */ // Package pleg contains types and a generic implementation of the pod // lifecycle event generator.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 16 17:48:21 UTC 2016 - 732 bytes - Viewed (0) -
pkg/kubelet/kubelet.go
} klet.pleg = pleg.NewGenericPLEG(klet.containerRuntime, eventChannel, genericRelistDuration, klet.podCache, clock.RealClock{}) // In case Evented PLEG has to fall back on Generic PLEG due to an error, // Evented PLEG should be able to reset the Generic PLEG relisting duration // to the default value. eventedRelistDuration := &pleg.RelistDuration{ RelistPeriod: genericPlegRelistPeriod, RelistThreshold: genericPlegRelistThreshold,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 126.1K bytes - Viewed (1) -
pkg/kubelet/metrics/metrics.go
// Pod Lifecycle Event Generator (PLEG). PLEGRelistDuration = metrics.NewHistogram( &metrics.HistogramOpts{ Subsystem: KubeletSubsystem, Name: PLEGRelistDurationKey, Help: "Duration in seconds for relisting pods in PLEG.", Buckets: metrics.DefBuckets, StabilityLevel: metrics.ALPHA, }, )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 22 15:13:25 UTC 2024 - 45.6K bytes - Viewed (0) -
pkg/kubelet/kubelet_test.go
kubelet.resyncInterval = 10 * time.Second kubelet.workQueue = queue.NewBasicWorkQueue(fakeClock) // Relist period does not affect the tests. kubelet.pleg = pleg.NewGenericPLEG(fakeRuntime, make(chan *pleg.PodLifecycleEvent, 100), &pleg.RelistDuration{RelistPeriod: time.Hour, RelistThreshold: genericPlegRelistThreshold}, kubelet.podCache, clock.RealClock{}) kubelet.clock = fakeClock nodeRef := &v1.ObjectReference{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 106.9K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/helpers.go
} // sandboxToKubeContainer converts runtimeapi.PodSandbox to kubecontainer.Container. // This is only needed because we need to return sandboxes as if they were // kubecontainer.Containers to avoid substantial changes to PLEG. // TODO: Remove this once it becomes obsolete. func (m *kubeGenericRuntimeManager) sandboxToKubeContainer(s *runtimeapi.PodSandbox) (*kubecontainer.Container, error) { if s == nil || s.Id == "" {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 12K bytes - Viewed (0)