Skip to content

Bump UpgradeCoreResourceRequirements to handle larger pubnet RAM#404

Open
graydon wants to merge 1 commit into
stellar:mainfrom
graydon:bump-upgrade-resources
Open

Bump UpgradeCoreResourceRequirements to handle larger pubnet RAM#404
graydon wants to merge 1 commit into
stellar:mainfrom
graydon:bump-upgrade-resources

Conversation

@graydon

@graydon graydon commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

UpgradeCoreResourceRequirements is used in both small upgrade tests and larger ones run against pubnet. This limit was last lowered back in 9c2defc (when the test was changed to use a disk-backed emptyDir) but lately we've switched to storing live soroban state in memory and it seems that the peak use during in-memory state rebuild has tipped over the 14GiB limit and we're getting OOMKilled during tests. So we're just bumping it back up here.

Copilot AI review requested due to automatic review settings July 8, 2026 07:44

Copilot AI left a comment

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.

Pull request overview

Adjusts Kubernetes resource requirements for upgrade tests to prevent OOM kills when rebuilding Soroban state in-memory, especially in larger pubnet-like runs.

Changes:

  • Increased UpgradeCoreResourceRequirements memory request/limit to accommodate higher peak RAM usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 138 to +140
// When doing upgrade tests, we give each container
// 256MB RAM and 1 vCPU, bursting to 4vCPU and 14GB
makeResourceRequirements 1000 256 4000 14000
// 6000MB RAM and 1 vCPU, bursting to 24000MB and 4 vCPUs
makeResourceRequirements 1000 6000 4000 24000
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.

3 participants