Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

first pass at a garbage collector #481

Merged
merged 5 commits into from
Jul 24, 2023
Merged

Conversation

krancour
Copy link
Member

Fixes #401

This is a minimally viable and minimally configurable garbage collector component:

  • Schedule is configurable. Defaults to the top of each hour.

  • The number of goroutines is configurable. Too low and GC is slow. Too high and the k8s API server throttles us. Defaults to 3.

  • The maximum number of Promotions in terminal states to be retained per Project. Promotions in non-terminal phases are never deleted regardless of this limit. Defaults to 20.

  • There is no support at this time for defining retention limits individually at the Project or Stage level.

@netlify
Copy link

netlify bot commented Jul 20, 2023

Deploy Preview for docs-kargo-akuity-io canceled.

Name Link
🔨 Latest commit 93d3aa3
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/64be871afcfd050008178f55

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #481 (93d3aa3) into main (1c73e70) will increase coverage by 1.47%.
The diff coverage is 93.47%.

@@            Coverage Diff             @@
##             main     #481      +/-   ##
==========================================
+ Coverage   49.70%   51.18%   +1.47%     
==========================================
  Files          50       51       +1     
  Lines        3947     4085     +138     
==========================================
+ Hits         1962     2091     +129     
- Misses       1902     1910       +8     
- Partials       83       84       +1     
Impacted Files Coverage Δ
internal/garbage/collector.go 93.47% <93.47%> (ø)

Copy link
Contributor

@gdsoumya gdsoumya left a comment

Choose a reason for hiding this comment

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

LGTM

@krancour krancour merged commit 9932d6c into akuity:main Jul 24, 2023
13 of 14 checks passed
@krancour krancour deleted the krancour/gc branch July 24, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

need a promotion "garbage collector" component
3 participants