Skip to content

[Feature] Add Resource Limits for Container#1012

Open
antonio-amjr wants to merge 2 commits into
project-chip:v2.15.1-beta1+summer2026from
antonio-amjr:feature/add_resouce_limits_for_rasp
Open

[Feature] Add Resource Limits for Container#1012
antonio-amjr wants to merge 2 commits into
project-chip:v2.15.1-beta1+summer2026from
antonio-amjr:feature/add_resouce_limits_for_rasp

Conversation

@antonio-amjr
Copy link
Copy Markdown
Contributor

@antonio-amjr antonio-amjr commented May 28, 2026

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.limits to the backend service:

  • cpus: '2.5' — caps the backend at 2.5 of the 4 available cores, preventing
    test 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 and
    forcing the OS to swap to SD card, which causes severe performance degradation
    on Raspberry Pi 4.

@antonio-amjr antonio-amjr requested review from oxesoft and rquidute May 28, 2026 18:45
@antonio-amjr antonio-amjr self-assigned this May 28, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

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.

Comment thread docker-compose.yml Outdated
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