Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e1cb2aa8
Commit
e1cb2aa8
authored
Nov 17, 2015
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: add Mesos scheduler documentation
parent
9707a0a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
88 additions
and
1 deletion
+88
-1
README.md
contrib/mesos/README.md
+4
-1
scheduler.md
contrib/mesos/docs/scheduler.md
+84
-0
scheduler.png
contrib/mesos/docs/scheduler.png
+0
-0
No files found.
contrib/mesos/README.md
View file @
e1cb2aa8
...
@@ -34,7 +34,10 @@ This project combines concepts and technologies from two already-complex project
...
@@ -34,7 +34,10 @@ This project combines concepts and technologies from two already-complex project
*
[
Mesos Documentation
](
http://mesos.apache.org/documentation/latest
)
*
[
Mesos Documentation
](
http://mesos.apache.org/documentation/latest
)
*
[
Kubernetes Documentation
](
../../README.md
)
*
[
Kubernetes Documentation
](
../../README.md
)
To get up and running with Kubernetes-Mesos, follow the
[
Getting started guide
](
../../docs/getting-started-guides/mesos.md
)
.
To get up and running with Kubernetes-Mesos, follow:
-
the
[
Getting started guide
](
../../docs/getting-started-guides/mesos.md
)
to launch a Kuberneters-Mesos cluster,
-
the
[
Kubernetes-Mesos Scheduler Guide
](
./docs/scheduler.md
)
for topics concerning the custom scheduler used in this distribution.
[

]()
[

]()
contrib/mesos/docs/scheduler.md
0 → 100644
View file @
e1cb2aa8
# Kubernetes-Mesos Scheduler
Kubernetes on Mesos does not use the upstream scheduler binary, but replaces it
with its own Mesos framework scheduler. The following gives an overview of
the differences.
## Labels and Mesos Agent Attributes
The scheduler of Kubernetes-Mesos takes
[
labels
][
1
]
into account: it matches
specified labels in pod specs with defined labels of nodes.
In addition to user defined labels,
[
attributes of Mesos agents
][
2
]
are converted
into node labels by the scheduler, following the pattern
```
yaml
k8s.mesosphere.io/attribute-<name>
:
value
```
As an example, a Mesos agent attribute of
`generation:2015`
will result in the node label
```
yaml
k8s.mesosphere.io/attribute-generation
:
2015
```
and can be used to schedule pods onto nodes which are of generation 2015.
**Note:**
Node labels prefixed by
`k8s.mesosphere.io`
are managed by
Kubernetes-Mesos and should not be modified manually by the user or admin. For
example, the Kubernetes-Mesos executor manages
`k8s.mesosphere.io/attribute`
labels and will auto-detect and update modified attributes when the mesos-slave
is restarted.
## Tuning
The scheduler configuration can be fine-tuned using an ini-style configuration file.
The filename is passed via
`--scheduler_config`
to the
`km scheduler`
command.
Be warned though that some them are pretty low-level and one has to know the inner
workings of k8sm to find sensible values. Moreover, these settings may change or
even disappear from version to version without further notice.
The following settings are the default:
```
[scheduler]
; duration an offer is viable, prior to being expired
offer-ttl = 5s
; duration an expired offer lingers in history
offer-linger-ttl = 2m
; duration between offer listener notifications
listener-delay = 1s
; size of the pod updates channel
updates-backlog = 2048
; interval we update the frameworkId stored in etcd
framework-id-refresh-interval = 30s
; wait this amount of time after initial registration before attempting
; implicit reconciliation
initial-implicit-reconciliation-delay = 15s
; interval in between internal task status checks/updates
explicit-reconciliation-max-backoff = 2m
; waiting period after attempting to cancel an ongoing reconciliation
explicit-reconciliation-abort-timeout = 30s
initial-pod-backoff = 1s
max-pod-backoff = 60s
http-handler-timeout = 10s
http-bind-interval = 5s
```
## Low-Level Scheduler Architecture

[
1
]:
../../../docs/user-guide/labels.md
[
2
]:
http://mesos.apache.org/documentation/attributes-resources/
[

]()
contrib/mesos/docs/scheduler.png
0 → 100644
View file @
e1cb2aa8
217 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment