Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
17b33997
Unverified
Commit
17b33997
authored
Mar 14, 2026
by
Wesley Liddick
Committed by
GitHub
Mar 14, 2026
Browse files
Merge pull request #1000 from touwaeriol/fix/ops-agg-tuning
fix(ops): tune aggregation constants to prevent PG overload
parents
39f8bd91
f59b66b7
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/internal/service/ops_aggregation_service.go
View file @
17b33997
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment