Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for MaxSkew (0.4 sec)

  1. pkg/scheduler/apis/config/validation/validation_pluginargs_test.go

    					{
    						MaxSkew:           1,
    						TopologyKey:       "node",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    					},
    					{
    						MaxSkew:           2,
    						TopologyKey:       "zone",
    						WhenUnsatisfiable: v1.ScheduleAnyway,
    					},
    				},
    				DefaultingType: config.ListDefaulting,
    			},
    		},
    		"maxSkew less than zero": {
    			args: &config.PodTopologySpreadArgs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/podtopologyspread/scoring.go

    // topology domain, the constraint's maxSkew and the topology weight.
    // `maxSkew-1` is added to the score so that differences between topology
    // domains get watered down, controlling the tolerance of the score to skews.
    func scoreForCount(cnt int64, maxSkew int32, tpWeight float64) float64 {
    	return float64(cnt)*tpWeight + float64(maxSkew-1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/filtering.go

    			matchNum = tpCount
    		}
    		skew := matchNum + selfMatchNum - minMatchNum
    		if skew > int(c.MaxSkew) {
    			logger.V(5).Info("Node failed spreadConstraint: matchNum + selfMatchNum - minMatchNum > maxSkew", "node", klog.KObj(node), "topologyKey", tpKey, "matchNum", matchNum, "selfMatchNum", selfMatchNum, "minMatchNum", minMatchNum, "maxSkew", c.MaxSkew)
    			return framework.NewStatus(framework.Unschedulable, ErrReasonConstraintsNotMatch)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. pkg/scheduler/apis/config/validation/validation_pluginargs.go

    	}
    
    	defaultConstraintsPath := path.Child("defaultConstraints")
    	for i, c := range args.DefaultConstraints {
    		p := defaultConstraintsPath.Index(i)
    		if c.MaxSkew <= 0 {
    			f := p.Child("maxSkew")
    			allErrs = append(allErrs, field.Invalid(f, c.MaxSkew, "not in valid range (0, inf)"))
    		}
    		allErrs = append(allErrs, validateTopologyKey(p.Child("topologyKey"), c.TopologyKey)...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 09:29:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/podtopologyspread/plugin.go

    )
    
    var systemDefaultConstraints = []v1.TopologySpreadConstraint{
    	{
    		TopologyKey:       v1.LabelHostname,
    		WhenUnsatisfiable: v1.ScheduleAnyway,
    		MaxSkew:           3,
    	},
    	{
    		TopologyKey:       v1.LabelTopologyZone,
    		WhenUnsatisfiable: v1.ScheduleAnyway,
    		MaxSkew:           5,
    	},
    }
    
    // PodTopologySpread is a plugin that ensures pod's topologySpreadConstraints is satisfied.
    type PodTopologySpread struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 16 14:13:06 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/scheme/scheme_test.go

      - name: InterPodAffinity
        args:
          hardPodAffinityWeight: 5
      - name: NodeResourcesFit
        args:
          ignoredResources: ["foo"]
      - name: PodTopologySpread
        args:
          defaultConstraints:
          - maxSkew: 1
            topologyKey: zone
            whenUnsatisfiable: ScheduleAnyway
      - name: VolumeBinding
        args:
          bindTimeoutSeconds: 300
      - name: NodeAffinity
        args:
          addedAffinity:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 13 07:42:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  7. pkg/scheduler/apis/config/v1/defaults_test.go

    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    			},
    			want: &configv1.PodTopologySpreadArgs{
    				DefaultConstraints: []v1.TopologySpreadConstraint{
    					{
    						TopologyKey:       "planet",
    						WhenUnsatisfiable: v1.DoNotSchedule,
    						MaxSkew:           2,
    					},
    				},
    				DefaultingType: configv1.SystemDefaulting,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 15:03:04 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  8. pkg/scheduler/testing/wrappers.go

    // into the inner pod.
    func (p *PodWrapper) SpreadConstraint(maxSkew int, tpKey string, mode v1.UnsatisfiableConstraintAction, selector *metav1.LabelSelector, minDomains *int32, nodeAffinityPolicy, nodeTaintsPolicy *v1.NodeInclusionPolicy, matchLabelKeys []string) *PodWrapper {
    	c := v1.TopologySpreadConstraint{
    		MaxSkew:            int32(maxSkew),
    		TopologyKey:        tpKey,
    		WhenUnsatisfiable:  mode,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.29.0/apps.v1beta2.ReplicaSet.yaml

                values:
                - valuesValue
              matchLabels:
                matchLabelsKey: matchLabelsValue
            matchLabelKeys:
            - matchLabelKeysValue
            maxSkew: 1
            minDomains: 5
            nodeAffinityPolicy: nodeAffinityPolicyValue
            nodeTaintsPolicy: nodeTaintsPolicyValue
            topologyKey: topologyKeyValue
            whenUnsatisfiable: whenUnsatisfiableValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 34.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.29.0/core.v1.PodTemplate.yaml

              operator: operatorValue
              values:
              - valuesValue
            matchLabels:
              matchLabelsKey: matchLabelsValue
          matchLabelKeys:
          - matchLabelKeysValue
          maxSkew: 1
          minDomains: 5
          nodeAffinityPolicy: nodeAffinityPolicyValue
          nodeTaintsPolicy: nodeTaintsPolicyValue
          topologyKey: topologyKeyValue
          whenUnsatisfiable: whenUnsatisfiableValue
        volumes:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 04:12:07 UTC 2023
    - 31.5K bytes
    - Viewed (0)
Back to top