"git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "6f3e77a2df42b7e89640b64c98bdea7f8d593421"
Unverified Commit 17b33997 authored by Wesley Liddick's avatar Wesley Liddick Committed by GitHub
Browse files

Merge pull request #1000 from touwaeriol/fix/ops-agg-tuning

fix(ops): tune aggregation constants to prevent PG overload
parents 39f8bd91 f59b66b7
...@@ -23,7 +23,7 @@ const ( ...@@ -23,7 +23,7 @@ const (
opsAggDailyInterval = 1 * time.Hour opsAggDailyInterval = 1 * time.Hour
// Keep in sync with ops retention target (vNext default 30d). // Keep in sync with ops retention target (vNext default 30d).
opsAggBackfillWindow = 30 * 24 * time.Hour opsAggBackfillWindow = 1 * time.Hour
// Recompute overlap to absorb late-arriving rows near boundaries. // Recompute overlap to absorb late-arriving rows near boundaries.
opsAggHourlyOverlap = 2 * time.Hour opsAggHourlyOverlap = 2 * time.Hour
...@@ -36,7 +36,7 @@ const ( ...@@ -36,7 +36,7 @@ const (
// that may still receive late inserts. // that may still receive late inserts.
opsAggSafeDelay = 5 * time.Minute opsAggSafeDelay = 5 * time.Minute
opsAggMaxQueryTimeout = 3 * time.Second opsAggMaxQueryTimeout = 5 * time.Second
opsAggHourlyTimeout = 5 * time.Minute opsAggHourlyTimeout = 5 * time.Minute
opsAggDailyTimeout = 2 * time.Minute opsAggDailyTimeout = 2 * time.Minute
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment