perf(relay): cache Git pack hydration (#2169)

This commit is contained in:
thomaspblock
2026-07-20 16:50:11 +02:00
committed by GitHub
parent 984645ecaa
commit a4d82ec722
13 changed files with 944 additions and 104 deletions

View File

@@ -87,6 +87,16 @@ pub fn install(port: u16, gauge_idle_timeout_secs: u64) {
&GIT_DURATION_BUCKETS_S,
)
.expect("valid git stream duration bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_pack_cache_populate_seconds".to_owned()),
&GIT_DURATION_BUCKETS_S,
)
.expect("valid git cache population duration bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_pack_cache_population_wait_seconds".to_owned()),
&GIT_DURATION_BUCKETS_S,
)
.expect("valid git cache population wait bucket boundaries")
.set_buckets_for_metric(
Matcher::Full("buzz_git_hydrate_bytes".to_owned()),
&GIT_BYTES_BUCKETS,