Skip to content

Conversation

sthaha
Copy link
Collaborator

@sthaha sthaha commented Jul 3, 2025

Add new configuration option 'maxTerminated' to control the maximum number of terminated workloads (processes, containers, VMs, pods) kept in memory until exported. This prevents unbounded memory growth in high-churn environments.

Changes include:

  • Add Monitor.MaxTerminated field with default value of 500
  • Add --monitor.max-terminated CLI flag for runtime configuration
  • Add YAML configuration support for maxTerminated setting
  • Add validation to ensure maxTerminated is non-negative (0 = unlimited)
  • Update documentation with usage examples and configuration details
  • Pass maxTerminated parameter to PowerMonitor via WithMaxTerminated option

@sthaha sthaha requested a review from vimalk78 July 3, 2025 09:19
Copy link
Contributor

github-actions bot commented Jul 3, 2025

⚠️ Config changes detected in this PR.
Please make sure that the config changes are updated in the following places as part of this PR:

  • docs/configuration/configuration.md
  • compose/dev/kepler-dev/etc/kepler/config.yaml
  • hack/config.yaml
  • manifests/k8s/configmap.yaml

Copy link

codecov bot commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 83.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 92.32%. Comparing base (5ad91c3) to head (2fbc24f).
Report is 4 commits behind head on reboot.

Files with missing lines Patch % Lines
internal/monitor/options.go 63.63% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           reboot    #2199      +/-   ##
==========================================
- Coverage   92.39%   92.32%   -0.07%     
==========================================
  Files          38       38              
  Lines        3907     3924      +17     
==========================================
+ Hits         3610     3623      +13     
- Misses        236      240       +4     
  Partials       61       61              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sthaha sthaha force-pushed the feat-config-max-terminated branch from 8a4fcd5 to d80bdcc Compare July 3, 2025 09:20
@github-actions github-actions bot added the feat A new feature or enhancement label Jul 3, 2025
Copy link
Contributor

github-actions bot commented Jul 3, 2025

⚠️ Config changes detected in this PR.
Please make sure that the config changes are updated in the following places as part of this PR:

  • docs/configuration/configuration.md
  • compose/dev/kepler-dev/etc/kepler/config.yaml
  • hack/config.yaml
  • manifests/k8s/configmap.yaml

Add new configuration option 'maxTerminated' to control the maximum number
of terminated workloads (processes, containers, VMs, pods) kept in memory
until exported. This prevents unbounded memory growth in high-churn
environments.

Changes include:
  - Add Monitor.MaxTerminated field with default value of 500
  - Add --monitor.max-terminated CLI flag for runtime configuration
  - Add YAML configuration support for maxTerminated setting
  - Add validation to ensure maxTerminated is non-negative (0 = unlimited)
  - Update documentation with usage examples and configuration details
  - Pass maxTerminated parameter to PowerMonitor via WithMaxTerminated option

Signed-off-by: Sunil Thaha <sthaha@redhat.com>
@sthaha sthaha force-pushed the feat-config-max-terminated branch from d80bdcc to 2fbc24f Compare July 3, 2025 09:22
Copy link
Contributor

github-actions bot commented Jul 3, 2025

⚠️ Config changes detected in this PR.
Please make sure that the config changes are updated in the following places as part of this PR:

  • docs/configuration/configuration.md
  • compose/dev/kepler-dev/etc/kepler/config.yaml
  • hack/config.yaml
  • manifests/k8s/configmap.yaml

@vimalk78 vimalk78 merged commit b611eea into sustainable-computing-io:reboot Jul 3, 2025
19 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat A new feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants