Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for nodestore (0.14 sec)

  1. pkg/controller/ttl/ttl_controller_test.go

    		},
    	}
    
    	for i, testCase := range testCases {
    		fakeClient := &fake.Clientset{}
    		nodeStore := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{})
    		nodeStore.Add(testCase.node)
    		ttlController := &Controller{
    			kubeClient:        fakeClient,
    			nodeStore:         listers.NewNodeLister(nodeStore),
    			desiredTTLSeconds: testCase.desiredTTL,
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. pkg/controller/ttl/ttl_controller.go

    	"k8s.io/kubernetes/pkg/controller"
    
    	"k8s.io/klog/v2"
    )
    
    // Controller sets ttl annotations on nodes, based on cluster size.
    type Controller struct {
    	kubeClient clientset.Interface
    
    	// nodeStore is a local cache of nodes.
    	nodeStore listers.NodeLister
    
    	// Nodes that need to be synced.
    	queue workqueue.TypedRateLimitingInterface[string]
    
    	// Returns true if all underlying informers are synced.
    	hasSynced func() bool
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/noderesources/least_allocated.go

    	return func(requested, allocable []int64) int64 {
    		var nodeScore, weightSum int64
    		for i := range requested {
    			if allocable[i] == 0 {
    				continue
    			}
    			weight := resources[i].Weight
    			resourceScore := leastRequestedScore(requested[i], allocable[i])
    			nodeScore += resourceScore * weight
    			weightSum += weight
    		}
    		if weightSum == 0 {
    			return 0
    		}
    		return nodeScore / weightSum
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 12 01:50:09 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/scorer.go

    	return func(classResources classResourceMap) int64 {
    		var nodeScore int64
    		// in alpha stage, all classes have the same weight
    		weightSum := len(classResources)
    		if weightSum == 0 {
    			return 0
    		}
    		for _, resource := range classResources {
    			classScore := f(resource.Requested, resource.Capacity)
    			nodeScore += classScore
    		}
    		return int64(math.Round(float64(nodeScore) / float64(weightSum)))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 13 11:08:45 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio.go

    	}
    	return func(requested, allocable []int64) int64 {
    		var nodeScore, weightSum int64
    		for i := range requested {
    			if allocable[i] == 0 {
    				continue
    			}
    			weight := resources[i].Weight
    			resourceScore := resourceScoringFunction(requested[i], allocable[i])
    			if resourceScore > 0 {
    				nodeScore += resourceScore * weight
    				weightSum += weight
    			}
    		}
    		if weightSum == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/noderesources/most_allocated.go

    	return func(requested, allocable []int64) int64 {
    		var nodeScore, weightSum int64
    		for i := range requested {
    			if allocable[i] == 0 {
    				continue
    			}
    			weight := resources[i].Weight
    			resourceScore := mostRequestedScore(requested[i], allocable[i])
    			nodeScore += resourceScore * weight
    			weightSum += weight
    		}
    		if weightSum == 0 {
    			return 0
    		}
    		return nodeScore / weightSum
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 21 15:23:47 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/PendingDependencies.java

            this.reportActivePending = true;
        }
    
        void registerConstraintProvider(NodeState nodeState) {
            if (hardEdges != 0) {
                throw new IllegalStateException("Cannot add a pending node for a dependency which is not pending");
            }
            constraintProvidingNodes.add(nodeState);
            if (nodeState.getComponent().getModule().isVirtualPlatform()) {
                reportActivePending = false;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/helper/normalize_score_test.go

    			scores := framework.NodeScoreList{}
    			for _, score := range test.scores {
    				scores = append(scores, framework.NodeScore{Score: score})
    			}
    
    			expectedScores := framework.NodeScoreList{}
    			for _, score := range test.expectedScores {
    				expectedScores = append(expectedScores, framework.NodeScore{Score: score})
    			}
    
    			DefaultNormalizeScore(framework.MaxNodeScore, test.reverse, scores)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 14 16:15:18 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  9. pkg/volume/csi/expander_test.go

    			name:          "when nodeExpansion=on, nodeStage=off, volumePhase=published",
    			nodeExpansion: true,
    			success:       true,
    			fsVolume:      true,
    		},
    		{
    			name:          "when nodeExpansion=on, nodeStage=off, volumePhase=published, fsVolume=false",
    			nodeExpansion: true,
    			success:       true,
    			fsVolume:      false,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 03:58:36 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/conflicts/CapabilitiesConflictHandler.java

         */
        boolean hasSeenCapability(Capability capability);
    
        interface Candidate {
            NodeState getNode();
            Capability getCapability();
            Collection<NodeState> getImplicitCapabilityProviders();
        }
    
        interface ResolutionDetails extends ConflictResolutionResult {
            Collection<? extends Capability> getCapabilityVersions();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 23:54:34 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top