Repository navigation
Conversation
Adds a `[local.services.<service>.container]` table with `memory` and `cpus`. Container runtimes apply them as `--memory`, `--memory-swap`, and `--cpus` on every launch, so limits survive stop and start; the native runtime ignores the table. Limit edits show as configuration drift in `stack status` until the next stop and start.
…managed-local-stack-cpu-and-memory # Conflicts: # apps/cli/src/config/cli-config-key.ts
Contributor
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 8 commands. Binary size: 134.8 MB, up 8.0 KB from 134.8 MB. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
This branch has not been deployed
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.
Summary
Local stack services can now be given container resource limits in
config.toml:memoryis a 1024-based size (512MiB,1GiB; a bare number is bytes). Swap is capped at the same amount, so the limit is not silently doubled.cpusis a positive number of CPUs; fractions are allowed.stack stopandstack start. Editing them shows as configuration drift instack statusuntil the stack is stopped and started again.config.tomlkeeps working with both runtimes.memorysetting.