- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 163 for maxSkew (0.14 sec)
-
pkg/scheduler/apis/config/validation/validation_pluginargs_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/common.go
} } if len(matchLabels) > 0 { selector = mergeLabelSetWithSelector(matchLabels, selector) } } tsc := topologySpreadConstraint{ MaxSkew: c.MaxSkew, TopologyKey: c.TopologyKey, Selector: selector, MinDomains: ptr.Deref(c.MinDomains, 1), // If MinDomains is nil, we treat MinDomains as 1.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go
want: []framework.NodeScore{ {Name: "node-a", Score: 33}, // +13, compared to maxSkew=1 {Name: "node-b", Score: 66}, // +6, compared to maxSkew=1 {Name: "node-c", Score: 100}, {Name: "node-d", Score: 16}, // +16, compared to maxSkew=1 }, }, { name: "one constraint on node, all 4 nodes are candidates, maxSkew=3", pod: st.MakePod().Name("p").Label("foo", "").
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 03:30:06 UTC 2023 - 60K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go
pod: st.MakePod().Name("p").Label("foo", "bar").Label("baz", "kar").Obj(), defaultConstraints: []v1.TopologySpreadConstraint{ {MaxSkew: 3, TopologyKey: "node", WhenUnsatisfiable: v1.DoNotSchedule}, {MaxSkew: 2, TopologyKey: "node", WhenUnsatisfiable: v1.ScheduleAnyway}, {MaxSkew: 5, TopologyKey: "rack", WhenUnsatisfiable: v1.DoNotSchedule}, }, objs: []runtime.Object{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 28 10:42:29 UTC 2024 - 143.1K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/test/framework/components/echo/kube/templates/deployment.yaml
{{- end }} spec: {{- if $.Ambient }} topologySpreadConstraints: - topologyKey: "kubernetes.io/hostname" whenUnsatisfiable: "ScheduleAnyway" maxSkew: 1 labelSelector: matchLabels: app: {{ $.Service }} {{- end }} {{- if $.ServiceAccount }} serviceAccountName: {{ $.Service }} {{- end }} {{- if $.DisableAutomountSAToken }}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 02 21:29:40 UTC 2024 - 6.1K bytes - Viewed (0) -
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) -
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)