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

Improve performance using session trackers in large clusters #12584

Merged
merged 11 commits into from
May 23, 2022

Conversation

xacrimon
Copy link
Contributor

@xacrimon xacrimon commented May 11, 2022

Measures taken:

  • Only request single trackers from clients where possible
  • Don't refetch roles uselessly in a loop.

These measures reduce the amount of tracker loads we make as well as significantly reduce filtering cost, combined with the below PR from @Joerger which also eliminates needless tracker fetching on a ticker from nodes, performance should be drastically improved for large clusters with many sessions and nodes. Due to needed filter restructuring, this also implements the same fix as #12569.

Related patches:

@xacrimon xacrimon self-assigned this May 11, 2022
@xacrimon xacrimon requested review from zmb3 and Joerger May 11, 2022 20:22
@xacrimon xacrimon marked this pull request as ready for review May 11, 2022 20:23
@github-actions github-actions bot added the tsh tsh - Teleport's command line tool for logging into nodes running Teleport. label May 11, 2022
tool/tsh/kube.go Outdated Show resolved Hide resolved
lib/auth/auth_with_roles.go Outdated Show resolved Hide resolved
lib/auth/auth_with_roles.go Show resolved Hide resolved
lib/auth/auth_with_roles.go Outdated Show resolved Hide resolved
lib/auth/auth_with_roles.go Outdated Show resolved Hide resolved
lib/auth/auth_with_roles.go Show resolved Hide resolved
lib/auth/auth_with_roles.go Show resolved Hide resolved
lib/auth/auth_with_roles.go Outdated Show resolved Hide resolved
lib/auth/auth_with_roles.go Outdated Show resolved Hide resolved
xacrimon and others added 2 commits May 20, 2022 09:48
@xacrimon xacrimon enabled auto-merge (squash) May 20, 2022 07:50
@xacrimon xacrimon merged commit 756c5e5 into master May 23, 2022
@github-actions
Copy link

@xacrimon See the table below for backport results.

Branch Result
branch/v9 Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-required tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants