Skip to content

Use the runtime default for Loop conversation capacity - #133

Open
Alex R (alexr17) wants to merge 2 commits into
mainfrom
alexr/loop-runtime-capacity-default
Open

Alex R (alexr17) wants to merge 2 commits into
mainfrom
alexr/loop-runtime-capacity-default

Conversation

@alexr17

@alexr17 Alex R (alexr17) commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Loop Runtime on GKE is capped at two conversations because the chart overrides the application's default of twenty.
Remove that cap and size the default pod at 2 CPU and 8Gi; explicit limits still use loopRuntime.extraEnvVars.

Input Behavior
Google, Loop enabled, no explicit limit Runtime default: 20 conversations per pod; chart requests and limits 2 CPU and 8Gi
loopRuntime.extraEnvVars sets the limit Explicit value reaches the runtime container
Loop disabled or absent in reused values No Loop resources
Reused values with Loop enabled and missing chart defaults Existing reset-then-reuse guidance remains
Reused values retaining 1 CPU and 2Gi Set CPU and memory requests and limits explicitly when upgrading
AWS or Azure Existing Loop enablement rules remain
Release, SHA, prerelease or custom image tag No capacity override; the selected runtime supplies its default
Missing, null, empty or zero capacity value No new capacity input or validation; existing environment overrides remain the runtime's responsibility

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T04:21:27.746474Z 7232820 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

BRAINSTORE_CACHE_DIR: /mnt/tmp/brainstore
BRAINSTORE_OBJECT_STORE_CACHE_FILE_SIZE: 5Gi
BRAINSTORE_OBJECT_STORE_CACHE_MEMORY_LIMIT: 256Mi
LOOP_RUNTIME_MAX_CLAIMED_CONVERSATIONS: "2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

With the cap gone a pod takes up to 20 conversations on 1 CPU and 2Gi, and autoscaling is off by default. AWS runs the same default on a 2 vCPU, 8 GiB task and also scales on CPU and memory. Has a pod at this size been run near 20 conversations, or should the default resources go up with it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I haven't run a pod near 20 conversations. I changed the GKE default requests and limits to 2 CPU / 8Gi, matching the AWS task sizing you called out, and documented the explicit resource settings needed when --reuse-values retains 1 CPU / 2Gi. The chart tests cover rendered resources, not load behavior.

BRAINSTORE_CACHE_DIR: /mnt/tmp/brainstore
BRAINSTORE_OBJECT_STORE_CACHE_FILE_SIZE: 5Gi
BRAINSTORE_OBJECT_STORE_CACHE_MEMORY_LIMIT: 256Mi
LOOP_RUNTIME_MAX_CLAIMED_CONVERSATIONS: "2"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

examples/gke-loop-runtime/README.md line 161 still says each runtime pod claims at most two conversations.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated the example README to state the runtime's 20-conversation default, the new pod resources, and how to override the limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants