Repository navigation
docs(agent): CPU and memory limits - #106
Merged
Merged
Conversation
Member
|
This seems lot of engineering (specially ebpf off/on) that memroylimit processor could have done? |
ansh-devs
force-pushed
the
docs/agent-resource-limits
branch
from
November 20, 2026 09:12
d32136f to
b595d8e
Compare
Add KloudMate Agent > CPU and memory limits: how to cap the agent's CPU and memory with the operating system or container runtime. - Linux: a systemd drop-in with MemoryMax, MemorySwapMax=0 and CPUQuota, how to check it with systemctl show, and MemoryLimit for hosts still on cgroup v1. - Docker: docker update --memory --memory-swap --cpus on the km-agent container, kept across upgrades from KloudMate and lost on reinstall. - Kubernetes: the Helm resources limits, with an example. - Windows: no system-level cap is available for a service. - How to choose the limits from observed usage, and how to tell from the journal that the kernel stopped the agent at its limit. Troubleshooting gets a line that points here when the agent is stopped at a memory limit. Co-Authored-By: Ansh Garhewal <anshdevsin@gmail.com>
ansh-devs
force-pushed
the
docs/agent-resource-limits
branch
from
November 20, 2026 09:12
b595d8e to
5e54f30
Compare
Member
Author
shall do benchmarks with otelcol off then monitor allocs. etc. so cross-compare. Meanwhile this is safe to merge as this will do hard cap from the system level rather we handling it in the agent process |
amitava82
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
How the agent sizes its memory budget and protects itself, and how to set a hard CPU and memory cap on Linux, Docker, Kubernetes and Windows: systemd drop-ins, docker update, the Helm resources values, and the Windows service environment. Covers tuning the protection, turning eBPF back on and checking the limits in effect, with a pointer from troubleshooting.