Skip to content

cmd/uraggregate: Cap memory size at a petabyte (fixes #7661) - #7667

Merged
AudriusButkevicius merged 1 commit into
mainfrom
AudriusButkevicius-patch-1-1
May 12, 2021
Merged

AudriusButkevicius merged 1 commit into
mainfrom
AudriusButkevicius-patch-1-1

Conversation

@AudriusButkevicius

@AudriusButkevicius AudriusButkevicius commented May 11, 2021 •

Copy link
Copy Markdown
Member

After this is merged and rolled out we should do:

DELETE FROM performance WHERE day > '2020-08-11' and let it re-aggregate;

Fixes #7661

@AudriusButkevicius AudriusButkevicius changed the title cmd/uraggregate: Cap memory size at a petabyte cmd/uraggregate: Cap memory size at a petabyte (fixes #7661) May 11, 2021
@AudriusButkevicius
AudriusButkevicius merged commit 4ace451 into main May 12, 2021
@AudriusButkevicius
AudriusButkevicius deleted the AudriusButkevicius-patch-1-1 branch May 12, 2021 07:01
@AudriusButkevicius

Copy link
Copy Markdown
Member Author

I assume this is not deployed?

Should we setup CI for these things to roll off of master or something?

@imsodin

imsodin commented May 14, 2021 •

Copy link
Copy Markdown
Member

It was deployed, but looks like the sql snippet wasn't run - done now and data looks sensible again. Thanks for the quick fix.

Personally I'd rather just ssh+build+copy+kill once or twice a year instead of setting up CI/CD. Just noticed there is a deploy job already - nice :)

@AudriusButkevicius

Copy link
Copy Markdown
Member Author

I also noticed we use a ton of date_trunc('day', bah) which seems to dodge using an index, so all of these queries are just repeated sequence scans across the whole table.

@st-release st-release added this to the v1.17.0 milestone May 25, 2021
@calmh calmh added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Aug 11, 2022
@syncthing syncthing locked and limited conversation to collaborators Aug 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

uraggregate: Wonky charts

4 participants