summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortanshanshan <tan.shanshan@zte.com.cn>2017-01-04 14:23:57 +0800
committertanshanshan <tan.shanshan@zte.com.cn>2017-01-04 14:23:57 +0800
commit3b5b72faa3f28aeedd9a86bb0f20e7692c2f6dd1 (patch)
treeab1f2f96692563771bd1bf1ad3a33e373e3c0e25
parent717088c7fe52cc368e0a53c1289db5f3690a29ec (diff)
fix invalid url
-rwxr-xr-xcontributors/devel/scheduler.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/contributors/devel/scheduler.md b/contributors/devel/scheduler.md
index 562297a7..9230535e 100755
--- a/contributors/devel/scheduler.md
+++ b/contributors/devel/scheduler.md
@@ -84,7 +84,7 @@ scheduling policies to apply, and can add new ones.
The policies that are applied when scheduling can be chosen in one of two ways.
The default policies used are selected by the functions `defaultPredicates()` and `defaultPriorities()` in
[plugin/pkg/scheduler/algorithmprovider/defaults/defaults.go](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithmprovider/defaults/defaults.go).
-However, the choice of policies can be overridden by passing the command-line flag `--policy-config-file` to the scheduler, pointing to a JSON file specifying which scheduling policies to use. See [examples/scheduler-policy-config.json](../../examples/scheduler-policy-config.json) for an example
+However, the choice of policies can be overridden by passing the command-line flag `--policy-config-file` to the scheduler, pointing to a JSON file specifying which scheduling policies to use. See [examples/scheduler-policy-config.json](http://releases.k8s.io/HEAD/examples/scheduler-policy-config.json) for an example
config file. (Note that the config file format is versioned; the API is defined in [plugin/pkg/scheduler/api](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/api/)).
Thus to add a new scheduling policy, you should modify [plugin/pkg/scheduler/algorithm/predicates/predicates.go] (http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithm/predicates/predicates.go) or add to the directory [plugin/pkg/scheduler/algorithm/priorities](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithm/priorities/), and either register the policy in `defaultPredicates()` or `defaultPriorities()`, or use a policy config file.