diff options
| author | tanshanshan <tan.shanshan@zte.com.cn> | 2016-12-02 14:22:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-02 14:22:05 +0800 |
| commit | 98411777e2a1d9411d5c7a2d80e33b71ef4b9d86 (patch) | |
| tree | 21c776ffbbd82736ce35d3db723a68a183fc4903 | |
| parent | 148fff443dcab5f673b5e90c1e461c328e4b0373 (diff) | |
Delete the content about priorities.go
| -rwxr-xr-x | contributors/devel/scheduler.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contributors/devel/scheduler.md b/contributors/devel/scheduler.md index b1cfea7a..98d30bf8 100755 --- a/contributors/devel/scheduler.md +++ b/contributors/devel/scheduler.md @@ -50,8 +50,7 @@ scheduling policies to apply, and can add new ones. ### Policies (Predicates and Priorities) The built-in predicates and priorities are -defined in [plugin/pkg/scheduler/algorithm/predicates/predicates.go](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithm/predicates/predicates.go) and -[plugin/pkg/scheduler/algorithm/priorities/priorities.go](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithm/priorities/priorities.go), respectively. +defined in [plugin/pkg/scheduler/algorithm/predicates/predicates.go](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithm/predicates/predicates.go) and the directory [plugin/pkg/scheduler/algorithm/priorities](http://releases.k8s.io/HEAD/plugin/pkg/scheduler/algorithm/priorities/) , respectively. ### Modifying policies @@ -60,7 +59,7 @@ the policies used are selected by the functions `defaultPredicates()` and `defau [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 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 predicates.go or priorities.go, and either register the policy in `defaultPredicates()` or `defaultPriorities()`, or use a policy config file. +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. ## Exploring the code |
