GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add CPU and memory limits to container start by fnando · Pull Request #2648 · stellar/stellar-cli

Conversation

@fnando

@fnando fnando commented Jul 16, 2026

Copy link
Copy Markdown
Member

What

Adds --cpus and --memory flags to stellar container start, applied as resource limits on the container run command.

They live in a new shared::RunArgs group kept separate from the connection Args, so commands that only act on an existing container (stop, logs) don't advertise flags they'd ignore. Both values pass through unparsed, which docker and Apple's container both accept on run.

Why

Lets users cap the CPU and memory a local network container consumes, rather than letting it use the host's full resources.

Known limitations

--cpus/--memory are forwarded verbatim to the selected engine; the CLI does not validate the values, so an engine-specific parse error surfaces from the engine itself.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI review requested due to automatic review settings July 16, 2026 18:58
@github-project-automation github-project-automation Bot added this to DevX Jul 16, 2026
@github-project-automation github-project-automation Bot moved this to Backlog (Not Ready) in DevX Jul 16, 2026
Copilot started reviewing on behalf of fnando July 16, 2026 18:59
View session
@fnando fnando self-assigned this Jul 16, 2026
@fnando fnando moved this from Backlog (Not Ready) to Needs Review in DevX Jul 16, 2026
@fnando
fnando requested review from leighmcculloch and mootz12 July 16, 2026 19:00
@fnando
fnando enabled auto-merge (squash) July 16, 2026 19:00
Copilot AI reviewed Jul 16, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds CPU and memory limits to stellar container start.

Changes:

  • Adds reusable RunArgs for --cpus and --memory.
  • Forwards limits to the selected container engine.
  • Updates help documentation and integration tests.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
FULL_HELP_DOCS.md Documents resource-limit flags.
cmd/soroban-cli/src/commands/container/start.rs Applies limits to container runs.
cmd/soroban-cli/src/commands/container/shared.rs Defines resource-limit arguments.
cmd/crates/soroban-test/tests/it/container.rs Tests Docker flag forwarding.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread cmd/soroban-cli/src/commands/container/shared.rs Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread FULL_HELP_DOCS.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@fnando
Add CPU and memory limits to container start.
92c0ba5
@fnando
fnando force-pushed the container-run-args branch from 8e85c5f to 92c0ba5 Compare July 16, 2026 19:08
leighmcculloch
leighmcculloch approved these changes Jul 16, 2026
View reviewed changes
@fnando
Merge branch 'main' into container-run-args
7581455
@fnando
fnando merged commit dc1f933 into main Jul 16, 2026
184 of 230 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@fnando
fnando deleted the container-run-args branch July 16, 2026 23:44
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in DevX Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@leighmcculloch leighmcculloch leighmcculloch approved these changes
@mootz12 mootz12 Awaiting requested review from mootz12

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@fnando fnando

Labels

None yet

Projects

DevX
Status: Done

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@fnando @leighmcculloch
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.