Skip to content

Commit

Permalink
Attempt at fixing the memory usage in CI (#19171)
Browse files Browse the repository at this point in the history
- Do not keep many intervals of the in memory sink metrics
   collector. Otherwise we fill up the CI's memory
  • Loading branch information
stevendpclark authored Feb 14, 2023
1 parent 5e71178 commit 42369ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/logical/pki/path_tidy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ func TestCertStorageMetrics(t *testing.T) {

// We set up a metrics accumulator
inmemSink := metrics.NewInmemSink(
2*newPeriod, // A short time period is ideal here to test metrics are emitted every periodic func
2000000*time.Hour)
2*newPeriod, // A short time period is ideal here to test metrics are emitted every periodic func
10*newPeriod) // Do not keep a huge amount of metrics in the sink forever, clear them out to save memory usage.

metricsConf := metrics.DefaultConfig("")
metricsConf.EnableHostname = false
Expand Down

0 comments on commit 42369ac

Please sign in to comment.