Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for modstat (0.18 sec)

  1. pkg/kubelet/eviction/eviction_manager_test.go

    				NumOfRunningProcesses: &NumberOfRunningProcesses,
    			},
    		},
    		Pods: []statsapi.PodStats{},
    	}
    	for _, podStat := range podStats {
    		result.Pods = append(result.Pods, podStat)
    	}
    	return result
    }
    
    func makeMemoryStats(nodeAvailableBytes string, podStats map[*v1.Pod]statsapi.PodStats) *statsapi.Summary {
    	val := resource.MustParse(nodeAvailableBytes)
    	availableBytes := uint64(val.Value())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. pkg/kubelet/metrics/collectors/volume_stats.go

    		ch <- metrics.NewLazyConstMetric(desc, metrics.GaugeValue, v, lv...)
    	}
    	allPVCs := sets.Set[string]{}
    	for _, podStat := range podStats {
    		if podStat.VolumeStats == nil {
    			continue
    		}
    		for _, volumeStat := range podStat.VolumeStats {
    			pvcRef := volumeStat.PVCRef
    			if pvcRef == nil {
    				// ignore if no PVC reference
    				continue
    			}
    			pvcUniqStr := pvcRef.Namespace + "/" + pvcRef.Name
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. pkg/kubelet/server/stats/summary_windows_test.go

    	assert.Equal(summary.Node.SystemContainers[0].CPU.UsageCoreNanoSeconds, podStats[0].CPU.UsageCoreNanoSeconds)
    	assert.Equal(summary.Node.SystemContainers[0].CPU.UsageNanoCores, podStats[0].CPU.UsageNanoCores)
    	assert.Equal(summary.Node.SystemContainers[0].Memory.WorkingSetBytes, podStats[0].Memory.WorkingSetBytes)
    	assert.Equal(summary.Node.SystemContainers[0].Memory.UsageBytes, podStats[0].Memory.UsageBytes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. pkg/kubelet/server/stats/summary_test.go

    		Swap:               cgroupStatsMap["/pods"].cs.Swap,
    	})
    	assert.Equal(summary.Pods, podStats)
    }
    
    func TestSummaryProviderGetStatsSplitImageFs(t *testing.T) {
    	ctx := context.Background()
    	assert := assert.New(t)
    
    	podStats := []statsapi.PodStats{
    		{
    			PodRef:      statsapi.PodReference{Name: "test-pod", Namespace: "test-namespace", UID: "UID_test-pod"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. pkg/kubelet/metrics/collectors/volume_stats_test.go

    		# TYPE kubelet_volume_stats_health_status_abnormal gauge
    	`
    
    	var (
    		podStats = []statsapi.PodStats{
    			{
    				PodRef:    statsapi.PodReference{Name: "test-pod", Namespace: "test-namespace", UID: "UID_test-pod"},
    				StartTime: metav1.Now(),
    				VolumeStats: []statsapi.VolumeStats{
    					{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.5K bytes
    - Viewed (1)
  6. cmd/metrics-v3-system-cpu.go

    func loadCPUMetrics(ctx context.Context, m MetricValues, c *metricsCache) error {
    	cpuMetrics, _ := c.cpuMetrics.Get()
    
    	if cpuMetrics.LoadStat != nil {
    		m.Set(sysCPULoad, cpuMetrics.LoadStat.Load1)
    		perc := cpuMetrics.LoadStat.Load1 * 100 / float64(cpuMetrics.CPUCount)
    		m.Set(sysCPULoadPerc, math.Round(perc*100)/100)
    	}
    
    	ts := cpuMetrics.TimesStat
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 23 23:56:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. pkg/kubelet/eviction/eviction_manager.go

    	for _, pod := range pods {
    		podStats, ok := statsFunc(pod)
    		if !ok {
    			continue
    		}
    
    		if m.emptyDirLimitEviction(podStats, pod) {
    			evicted = append(evicted, pod)
    			continue
    		}
    
    		if m.podEphemeralStorageLimitEviction(podStats, pod) {
    			evicted = append(evicted, pod)
    			continue
    		}
    
    		if m.containerEphemeralStorageLimitEviction(podStats, pod) {
    			evicted = append(evicted, pod)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  8. pkg/kubelet/eviction/helpers_test.go

    	}
    	for _, pod := range pods {
    		podStats, found := statsFunc(pod)
    		if !found {
    			t.Errorf("Pod stats were not found for pod %v", pod.UID)
    		}
    		if *podStats.Memory.WorkingSetBytes != podWorkingSetBytes {
    			t.Errorf("Pod working set expected %v, actual: %v", podWorkingSetBytes, *podStats.Memory.WorkingSetBytes)
    		}
    	}
    }
    
    func TestThresholdsMet(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  9. pkg/kubelet/stats/cri_stats_provider_windows.go

    	}
    }
    
    func addCRIPodProcessStats(ps *statsapi.PodStats, criPodStat *runtimeapi.PodSandboxStats) {
    	if criPodStat == nil || criPodStat.Windows == nil || criPodStat.Windows.Process == nil {
    		return
    	}
    	ps.ProcessStats = &statsapi.ProcessStats{
    		ProcessCount: valueOfUInt64Value(criPodStat.Windows.Process.ProcessCount),
    	}
    }
    
    func addCRIPodNetworkStats(ps *statsapi.PodStats, criPodStat *runtimeapi.PodSandboxStats) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 07:03:11 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. cmd/metrics-realtime.go

    		} else {
    			m.Aggregated.CPU.CPUCount = cpuCount
    		}
    
    		loadStat, err := load.Avg()
    		if err != nil {
    			m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (loadStat)", byHostName, err.Error()))
    		} else {
    			m.Aggregated.CPU.LoadStat = loadStat
    		}
    	}
    	if types.Contains(madmin.MetricsRPC) {
    		gr := globalGrid.Load()
    		if gr == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 01 05:16:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top