Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v14] Reduce backend load created from session trackers #42695

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #42324 to branch/v14

changelog: reduce backend writes incurred by tracking status of non-recorded sessions.

Session trackers were originally added to facilitate joining
sessions and enforcing moderation policies. When a session is
created, a new tracker is written to the backend and a background
routine is spawned to periodically update the status of the tracker
until the session is terminated. This can cause a massive amount
of backend activity for a cluster that is spawning large
quantities of sessions per second. While in most cases where
humans are starting the sessions this isn't a problem, any machine
id heavy use cases could trigger backend throttling. Since
non-interactive sessions and sessions started by tbot are not
meant to be joined or moderated, the existence of a session
tracker for them doesn't provide much benefit, especially now that
session recordings are disabled for non-interactive sessions. To
prevent excess backend writes session trackers are no longer
created for non-interactive and tbot sessions.
@rosstimothy rosstimothy force-pushed the tross/backport-42324/v14 branch from 4e057b2 to 1680d60 Compare June 10, 2024 15:49
@rosstimothy rosstimothy marked this pull request as ready for review June 10, 2024 16:35
@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from camscale June 11, 2024 08:26
@rosstimothy rosstimothy added this pull request to the merge queue Jun 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 11, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Jun 11, 2024
Merged via the queue into branch/v14 with commit 9192365 Jun 11, 2024
27 checks passed
@rosstimothy rosstimothy deleted the tross/backport-42324/v14 branch June 11, 2024 12:53
This was referenced Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants