Skip to content

teslamate-db: cap CPU at 0.5 cores#2645

Open
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-teslamate-db-cpu-limit
Open

teslamate-db: cap CPU at 0.5 cores#2645
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-teslamate-db-cpu-limit

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 3, 2026

The teslamate PostgreSQL pod was unconstrained on CPU, causing resource contention on the node.

Changes

  • cluster/apps/home-automation/teslamate/postgresql.yaml — adds primary.resources.limits.cpu: 500m to the Bitnami Helm chart values
primary:
  resources:
    limits:
      cpu: 500m

Copilot AI linked an issue May 3, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/jeffborg/home-network/sessions/bdfc0565-a6b3-4f7f-9c5c-5c27eb2493cc

Co-authored-by: jeffborg <1595430+jeffborg@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix teslamate database CPU limit to 0.5 teslamate-db: cap CPU at 0.5 cores May 3, 2026
Copilot AI requested a review from jeffborg May 3, 2026 23:31
@jeffborg jeffborg marked this pull request as ready for review May 4, 2026 01:24
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

🔍 Helm Release Diff

cluster/apps/home-automation/teslamate/postgresql.yaml — 🔄 Values changed (chart 16.2.1)

Click to expand diff
268c268
<               cpu: 150m
---
>               cpu: 500m

@jeffborg
Copy link
Copy Markdown
Owner

jeffborg commented May 4, 2026

@copilot see diff #2645 (comment)

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 4, 2026

@copilot see diff #2645 (comment)

The previous change dropped the chart's default memory, ephemeral-storage limits, and requests. Fixed in 88857f5 — now all those values are explicitly set alongside the new CPU limit:

resources:
  limits:
    cpu: 500m
    ephemeral-storage: 2Gi
    memory: 192Mi
  requests:
    cpu: 100m
    ephemeral-storage: 50Mi
    memory: 128Mi

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.

teslamate db limit cpu to 0.5

2 participants