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
7b1e7b9a
Commit
7b1e7b9a
authored
Jul 05, 2016
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow expressing evictions as percentage or literal values
parent
04602bb9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
kubelet-eviction.md
docs/proposals/kubelet-eviction.md
+14
-3
No files found.
docs/proposals/kubelet-eviction.md
View file @
7b1e7b9a
...
@@ -75,9 +75,12 @@ The `kubelet` will support the ability to trigger eviction decisions on the foll
...
@@ -75,9 +75,12 @@ The `kubelet` will support the ability to trigger eviction decisions on the foll
|------------------|---------------------------------------------------------------------------------|
|------------------|---------------------------------------------------------------------------------|
| memory.available | memory.available := node.status.capacity
[
memory
]
- node.stats.memory.workingSet |
| memory.available | memory.available := node.status.capacity
[
memory
]
- node.stats.memory.workingSet |
| nodefs.available | nodefs.available := node.stats.fs.available |
| nodefs.available | nodefs.available := node.stats.fs.available |
| nodefs.inodesFree | nodefs.inodesFree := node.fs.inodesFree |
| nodefs.inodesFree | nodefs.inodesFree := node.
stats.
fs.inodesFree |
| imagefs.available | imagefs.available := node.stats.runtime.imagefs.available |
| imagefs.available | imagefs.available := node.stats.runtime.imagefs.available |
| imagefs.inodesFree | imagefs.inodesFree := node.runtime.imageFs.inodesFree |
| imagefs.inodesFree | imagefs.inodesFree := node.stats.runtime.imagefs.inodesFree |
Each of the above signals support either a literal or percentage based value. The percentage based value
is calculated relative to the total capacity associated with each signal.
`kubelet`
supports only two filesystem partitions.
`kubelet`
supports only two filesystem partitions.
...
@@ -93,17 +96,25 @@ The `kubelet` will support the ability to specify eviction thresholds.
...
@@ -93,17 +96,25 @@ The `kubelet` will support the ability to specify eviction thresholds.
An eviction threshold is of the following form:
An eviction threshold is of the following form:
`<eviction-signal><operator><quantity>`
`<eviction-signal><operator><quantity
| int%
>`
*
valid
`eviction-signal`
tokens as defined above.
*
valid
`eviction-signal`
tokens as defined above.
*
valid
`operator`
tokens are
`<`
*
valid
`operator`
tokens are
`<`
*
valid
`quantity`
tokens must match the quantity representation used by Kubernetes
*
valid
`quantity`
tokens must match the quantity representation used by Kubernetes
*
an eviction threshold can be expressed as a percentage if ends with
`%`
token.
If threhold criteria are met, the
`kubelet`
will take pro-active action to attempt
If threhold criteria are met, the
`kubelet`
will take pro-active action to attempt
to reclaim the starved compute resource associated with the eviction signal.
to reclaim the starved compute resource associated with the eviction signal.
The
`kubelet`
will support soft and hard eviction thresholds.
The
`kubelet`
will support soft and hard eviction thresholds.
For example, if a node has
`10Gi`
of memory, and the desire is to induce eviction
if available memory falls below
`1Gi`
, an eviction signal can be specified as either
of the following (but not both).
*
`memory.available<10%`
*
`memory.available<1Gi`
### Soft Eviction Thresholds
### Soft Eviction Thresholds
A soft eviction threshold pairs an eviction threshold with a required
A soft eviction threshold pairs an eviction threshold with a required
...
...
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