summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork8s-merge-robot <k8s.production.user@gmail.com>2016-02-05 20:08:31 -0800
committerk8s-merge-robot <k8s.production.user@gmail.com>2016-02-05 20:08:31 -0800
commit6e7141ff41b3f1d5cfdac618f2973e1e752afc1a (patch)
tree1654f492ad757ebc7776a3916bf428a09b13eefc
parent42776649d13dcb62d59118f75de5985ad3c8531d (diff)
parent84dd3cfed344c22d95ff426a3221c5377fde0f75 (diff)
Merge pull request #20140 from resouer/scheduler
Auto commit by PR queue bot
-rwxr-xr-xscheduler_algorithm.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/scheduler_algorithm.md b/scheduler_algorithm.md
index 786666ca..a3897ffb 100755
--- a/scheduler_algorithm.md
+++ b/scheduler_algorithm.md
@@ -67,6 +67,7 @@ Currently, Kubernetes scheduler provides some practical priority functions, incl
- `BalancedResourceAllocation`: This priority function tries to put the Pod on a node such that the CPU and Memory utilization rate is balanced after the Pod is deployed.
- `CalculateSpreadPriority`: Spread Pods by minimizing the number of Pods belonging to the same service on the same node. If zone information is present on the nodes, the priority will be adjusted so that pods are spread across zones and nodes.
- `CalculateAntiAffinityPriority`: Spread Pods by minimizing the number of Pods belonging to the same service on nodes with the same value for a particular label.
+- `ImageLocalityPriority`: Nodes are prioritized based on locality of images requested by a pod. Nodes with larger size of already-installed packages required by the pod will be preferred over nodes with no already-installed packages required by the pod or a small total size of already-installed packages required by the pod.
The details of the above priority functions can be found in [plugin/pkg/scheduler/algorithm/priorities](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithm/priorities/). Kubernetes uses some, but not all, of these priority functions by default. You can see which ones are used by default in [plugin/pkg/scheduler/algorithmprovider/defaults/defaults.go](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithmprovider/defaults/defaults.go). Similar as predicates, you can combine the above priority functions and assign weight factors (positive number) to them as you want (check [scheduler.md](scheduler.md) for how to customize).