perf(relay): compact Git packs before manifest limits (#2172)

This commit is contained in:
thomaspblock
2026-07-20 19:36:28 +02:00
committed by GitHub
parent 77900e69b3
commit 80e0ab16b0
5 changed files with 1112 additions and 122 deletions

View File

@@ -97,6 +97,11 @@ pub fn install(port: u16, gauge_idle_timeout_secs: u64) {
&GIT_DURATION_BUCKETS_S,
)
.expect("valid git cache population wait bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_pack_compaction_seconds".to_owned()),
&GIT_DURATION_BUCKETS_S,
)
.expect("valid git compaction duration bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_hydrate_bytes".to_owned()),
&GIT_BYTES_BUCKETS,
@@ -107,11 +112,26 @@ pub fn install(port: u16, gauge_idle_timeout_secs: u64) {
&GIT_BYTES_BUCKETS,
)
.expect("valid git stream byte bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_pack_compaction_bytes".to_owned()),
&GIT_BYTES_BUCKETS,
)
.expect("valid git compaction byte bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_hydrate_packs".to_owned()),
&GIT_PACK_BUCKETS,
)
.expect("valid git pack-count bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_pack_compaction_packs_before".to_owned()),
&GIT_PACK_BUCKETS,
)
.expect("valid git compaction input pack-count bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_pack_compaction_packs_after".to_owned()),
&GIT_PACK_BUCKETS,
)
.expect("valid git compaction output pack-count bucket boundaries")
.set_buckets_for_metric(Matcher::Suffix("_seconds".to_owned()), &DURATION_BUCKETS_S)
.expect("valid seconds bucket boundaries")
.set_buckets_for_metric(