[Feature] Add Resource Limits for Container#1012
Open
antonio-amjr wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds CPU and memory resource limits to the backend service in the docker-compose configuration. The review feedback highlights potential issues with hard-coding these limits, particularly on Raspberry Pi 4 devices with varying RAM capacities, and recommends making the limits configurable via environment variables to prevent OOM kills or restrictive caps.
Open
3 tasks
rquidute
approved these changes
May 28, 2026
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.
Fix: #911
In combination with: project-chip/certification-tool-backend#327
Description
Add backend resource limits for Raspberry Pi 4 deployment
Changes
Backend CPU and memory limits (
docker-compose.yml)Added
deploy.resources.limitsto the backend service:cpus: '2.5'— caps the backend at 2.5 of the 4 available cores, preventingtest execution from starving the OS, Docker daemon, and other services during
heavy SDK test runs.
memory: 1500M— prevents the backend from consuming all available RAM andforcing the OS to swap to SD card, which causes severe performance degradation
on Raspberry Pi 4.