Skip to content

[v10] Limit number of resources loaded into memory for version metrics#17087

Merged
rosstimothy merged 5 commits into
branch/v10from
tross/v10/version_metrics
Oct 6, 2022
Merged

[v10] Limit number of resources loaded into memory for version metrics#17087
rosstimothy merged 5 commits into
branch/v10from
tross/v10/version_metrics

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Forward port of #16916 to branch/v10

@rosstimothy rosstimothy marked this pull request as ready for review October 5, 2022 18:50
The periodic version metric calculation loaded all nodes, database
servers and app servers into memory in order to tally the versions
of each. For larger clusters unmarshalling all resources and loading
them into memory is quite expensive. To prevent Teleport from potentiall
being OOM killed we can use `ListNodes` and `ListResources` to limit
the number of resources being loaded into memory.
@rosstimothy rosstimothy force-pushed the tross/v10/version_metrics branch from b7e224b to 7fcdee2 Compare October 5, 2022 20:03
Comment thread lib/services/local/presence.go
@github-actions github-actions Bot removed the request for review from jakule October 6, 2022 14:03
@rosstimothy rosstimothy enabled auto-merge (squash) October 6, 2022 18:51
@rosstimothy rosstimothy merged commit c2b148d into branch/v10 Oct 6, 2022
@rosstimothy rosstimothy deleted the tross/v10/version_metrics branch January 5, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants