summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ashpole <dashpole@google.com>2018-01-02 16:12:30 -0800
committerGitHub <noreply@github.com>2018-01-02 16:12:30 -0800
commit031dc7414e056413d9d3f20ced3ea84590a027db (patch)
tree2721aa4bfc01514071404b9d5af793f6beb727d3
parentb5aa22691c5aacc901a022c885ef59c2f695ee62 (diff)
Periodically change memcg threshold.
-rw-r--r--contributors/design-proposals/node/kubelet-eviction.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/contributors/design-proposals/node/kubelet-eviction.md b/contributors/design-proposals/node/kubelet-eviction.md
index 69a9cc17..4fff62d5 100644
--- a/contributors/design-proposals/node/kubelet-eviction.md
+++ b/contributors/design-proposals/node/kubelet-eviction.md
@@ -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: