mirror of
https://github.com/Corsinvest/cv4pve-admin.git
synced 2026-04-25 04:45:59 +03:00
[PR #248] perf: optimize RRD cache TTL based on time frame #330
Labels
No labels
bug
bug
enhancement
feedback
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-admin#330
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/248
State: closed
Merged: Yes
Summary
GetRrdDataAsyncoverloads with a dynamic TTL proportional to the Proxmox RRD time frameHour→ 2 min,Day→ 5 min,Week→ 30 min,Month→ 2h,Year→ 12hMotivation
Previously all RRD requests used a fixed 30s cache TTL regardless of the time frame. A
Yeargraph was re-fetched from Proxmox every 30s even though the underlying data changes once per day. With DRS running every few minutes and usingHourframe, the cache was always cold — every run triggered N sequential API calls (one per node). The new TTL aligns cache lifetime with the natural update frequency of each time frame.Test plan