Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for fopacity (0.2 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	newCache := make([]*watchCacheEvent, capacity)
    	if capacity < w.capacity {
    		// adjust startIndex if cache capacity shrink.
    		w.startIndex = w.endIndex - capacity
    	}
    	for i := w.startIndex; i < w.endIndex; i++ {
    		newCache[i%capacity] = w.cache[i%w.capacity]
    	}
    	w.cache = newCache
    	metrics.RecordsWatchCacheCapacityChange(w.groupResource.String(), w.capacity, capacity)
    	w.capacity = capacity
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    	// To preserve behavior of tests that assume a given capacity,
    	// resize it to th expected size.
    	wc.capacity = capacity
    	wc.cache = make([]*watchCacheEvent, capacity)
    	wc.lowerBoundCapacity = min(capacity, defaultLowerBoundCapacity)
    	wc.upperBoundCapacity = max(capacity, defaultUpperBoundCapacity)
    
    	return wc
    }
    
    type immediateTickerFactory struct{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    			eventsAddedToWatchcache: capacity + bufferSize,
    			intervalStartIndex:      0,
    		},
    		{
    			name:                    "watchCache over propagated, eventsAddedToWatchcache > capacity, intervalStartIndex at some offset",
    			eventsAddedToWatchcache: capacity + bufferSize,
    			intervalStartIndex:      5,
    		},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pkg/controller/volume/expand/expand_controller.go

    }
    
    // isNodeExpandComplete returns true if  pvc.Status.Capacity >= pv.Spec.Capacity
    func (expc *expandController) isNodeExpandComplete(logger klog.Logger, pvc *v1.PersistentVolumeClaim, pv *v1.PersistentVolume) bool {
    	logger.V(4).Info("pv and pvc capacity", "PV", klog.KObj(pv), "pvCapacity", pv.Spec.Capacity[v1.ResourceStorage], "PVC", klog.KObj(pvc), "pvcCapacity", pvc.Status.Capacity[v1.ResourceStorage])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  5. pkg/kubelet/nodestatus/setters.go

    			for k, v := range devicePluginCapacity {
    				if old, ok := node.Status.Capacity[k]; !ok || old.Value() != v.Value() {
    					klog.V(2).InfoS("Updated capacity for device plugin", "plugin", k, "capacity", v.Value())
    				}
    				node.Status.Capacity[k] = v
    			}
    
    			for _, removedResource := range removedDevicePlugins {
    				klog.V(2).InfoS("Set capacity for removed resource to 0 on device removal", "device", removedResource)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/node_container_manager_linux.go

    func (cm *containerManagerImpl) GetNodeAllocatableAbsolute() v1.ResourceList {
    	return cm.getNodeAllocatableAbsoluteImpl(cm.capacity)
    }
    
    func (cm *containerManagerImpl) getNodeAllocatableAbsoluteImpl(capacity v1.ResourceList) v1.ResourceList {
    	result := make(v1.ResourceList)
    	for k, v := range capacity {
    		value := v.DeepCopy()
    		if cm.NodeConfig.SystemReserved != nil {
    			value.Sub(cm.NodeConfig.SystemReserved[k])
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  7. src/runtime/mgclimit.go

    	test bool
    
    	bucket struct {
    		// Invariants:
    		// - fill >= 0
    		// - capacity >= 0
    		// - fill <= capacity
    		fill, capacity uint64
    	}
    	// overflow is the cumulative amount of GC CPU time that we tried to fill the
    	// bucket with but exceeded its capacity.
    	overflow uint64
    
    	// assistTimePool is the accumulated assist time since the last update.
    	assistTimePool atomic.Int64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  8. cmd/metrics.go

    	totalDisks := offlineDisks.Merge(onlineDisks)
    
    	// Report total capacity
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "capacity_raw", "total"),
    			"Total capacity online in the cluster",
    			nil, nil),
    		prometheus.GaugeValue,
    		float64(GetTotalCapacity(server.Disks)),
    	)
    
    	// Report total capacity free
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. pkg/kubelet/kubelet_node_status.go

    		initialCapacity := initialNode.Status.Capacity[resourceName]
    		initialAllocatable := initialNode.Status.Allocatable[resourceName]
    
    		capacity, resourceIsSupported := existingNode.Status.Capacity[resourceName]
    		allocatable := existingNode.Status.Allocatable[resourceName]
    
    		// Add or update capacity if it the size was previously unsupported or has changed
    		if !resourceIsSupported || capacity.Cmp(initialCapacity) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  10. pkg/kubelet/images/image_gc_manager.go

    		return err
    	}
    
    	var capacity, available int64
    	if fsStats.CapacityBytes != nil {
    		capacity = int64(*fsStats.CapacityBytes)
    	}
    	if fsStats.AvailableBytes != nil {
    		available = int64(*fsStats.AvailableBytes)
    	}
    
    	if available > capacity {
    		klog.InfoS("Availability is larger than capacity", "available", available, "capacity", capacity)
    		available = capacity
    	}
    
    	// Check valid capacity.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top