diff options
| author | Clayton Coleman <ccoleman@redhat.com> | 2016-12-02 12:21:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-02 12:21:06 -0500 |
| commit | cb665ec0b5cf7a2f889e9542d3f5d0e326e4b941 (patch) | |
| tree | e91a49b5426664076cc84506b7becb330869dc7f | |
| parent | a530168e9ed81ddb57fa1735f7a38208b3c5b6a8 (diff) | |
| parent | 98411777e2a1d9411d5c7a2d80e33b71ef4b9d86 (diff) | |
Merge pull request #133 from tanshanshan/scheduler_doc
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 |
