Skip to content

Commit

Permalink
Periodically change memcg threshold.
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole authored Jan 3, 2018
1 parent b5aa226 commit 031dc74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contributors/design-proposals/node/kubelet-eviction.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ For example, the eviction manager could start collecting observations every seco
manager are not completely in-sync, the threshold can help the eviction manager to respond faster than
it otherwise would. After a short period, it would resume the standard interval of sync loop calls.

4. Periodically adjust the memory cgroup threshold based on total_inactive_file
For example, the eviction manager would set the threshold for usage_in_bytes to mem_capacity - eviction_hard +
total_inactive_file. This would mean that the threshold is crossed when usage_in_bytes - total_inactive_file
= mem_capacity - eviction_hard. As long as total_inactive_file changes slowly, this would be fairly accurate.

### Disk

Let's assume the operator started the `kubelet` with the following:
Expand Down

0 comments on commit 031dc74

Please sign in to comment.