mirror of
https://github.com/block/buzz.git
synced 2026-10-27 04:30:52 +00:00
perf(relay): compact Git packs before manifest limits (#2172)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user