scheduler(NodeResourcesFit & NodeResourcesBalancedAllocation): calculatePodResourceRequest in PreScore phase (#115655)

* scheduler(NodeResourcesFit): calculatePodResourceRequest in PreScore phase

* scheduler(NodeResourcesFit and NodeResourcesBalancedAllocation): calculatePodResourceRequest in PreScore phase

* modify the comments and tests.

* revert the tests.

* don't need consider nodes.

* use list instead of map.

* add comment for podRequests.

* avoid using negative wording in variable names.
This commit is contained in:
tangwz
2023-03-10 23:44:53 +08:00
committed by GitHub
parent 2e3c5003b9
commit be080584c6
13 changed files with 286 additions and 22 deletions

View File

@@ -402,6 +402,7 @@ leaderElection:
{Name: "NodePorts"},
}
plugins.PreScore.Enabled = []config.Plugin{
{Name: "NodeResourcesFit"},
{Name: "InterPodAffinity"},
{Name: "TaintToleration"},
}
@@ -431,6 +432,7 @@ leaderElection:
{Name: "NodePorts"},
}
plugins.PreScore.Enabled = []config.Plugin{
{Name: "NodeResourcesFit"},
{Name: "InterPodAffinity"},
{Name: "TaintToleration"},
}