Repository navigation
fix(k8s): give the ollama-16gib tier a memory limit - #5117
Merged
Merged
Conversation
Plan #5115 and add the failing test: the ollama container of ollama-16gib requests 8Gi of memory and limits it to 8Gi.
The ollama container of ollama-16gib limits its memory to its 8Gi request. Its node has 16 GiB of memory, about 13 GiB allocatable, and the tier serves nothing, so a model load past the gateway ends in an OOM kill of the container, not in a node with no free memory. The general workload test no longer asserts that the tier has no limit. k8s/README.md and the Ollama page of the knowledge base state the limit.
Owner
Author
|
Local proof (2026-11-12):
No full local |
dan-petty
marked this pull request as ready for review
November 12, 2026 15:38
dan-petty
pushed a commit
that referenced
this pull request
Nov 12, 2026
🤖 I have created a release *beep* *boop* --- ## [0.120.0](v0.119.0...v0.120.0) (2026-11-12) ### Features * **agents:** remote agent sessions install the git hooks ([#5126](#5126)) ([a04e7a9](a04e7a9)) ### Bug Fixes * **k8s:** give the ollama-16gib tier a memory limit ([#5117](#5117)) ([22176a0](22176a0)) * **roadmap:** the Status writer guards an equal label ([#5116](#5116)) ([aaf3eaf](aaf3eaf)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
The ollama container of the ollama-16gib DaemonSet now limits its memory to its 8Gi request. Its node has 16 GiB of memory, of which about 13 GiB is allocatable after the system reservation of dan-petty/homelab pull request 19, and the tier serves nothing. Without a limit, a model load that goes straight to the tier could take all of the free memory of the node. With the limit, the kernel stops the container, not the node. The tier uses 283Mi idle, and ollama-64gib uses 6.4 GiB with its model loaded, so one model load fits. The memory limits of all pods on the node add up to about 10 GiB.
Closes #5115
Change:
openspec/changes/archive/2026-11-12-5115-ollama-16gib-memory-limit/