Skip to content

[v14] Improve node listing in tsh and tctl#39568

Merged
rosstimothy merged 1 commit intobranch/v14from
bot/backport-39458-branch/v14
Mar 19, 2024
Merged

[v14] Improve node listing in tsh and tctl#39568
rosstimothy merged 1 commit intobranch/v14from
bot/backport-39458-branch/v14

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #39458 to branch/v14

changelog: Improve performance when listing nodes with tsh or tctl

Converts both tools to use the ListUnifiedResources RPC instead of
the ListResources RPC to improve performance. While there may only
be marginal gains when listing the entire set of nodes, there are
substantial improvements when filtering via predicate, labels, or
search.

tctl was also changed slightly to make use of server side filtering
when tctl get node/foo is run. Prior to this change the entire node
set was always retreived and tctl performed the filter client side
if the user provided a hostname or UUID.
@rosstimothy rosstimothy marked this pull request as ready for review March 19, 2024 14:45
@github-actions github-actions Bot requested review from Tener and zmb3 March 19, 2024 14:45
@github-actions github-actions Bot added backport size/sm tctl tctl - Teleport admin tool labels Mar 19, 2024
@rosstimothy rosstimothy added this pull request to the merge queue Mar 19, 2024
Merged via the queue into branch/v14 with commit cf8d5c9 Mar 19, 2024
@rosstimothy rosstimothy deleted the bot/backport-39458-branch/v14 branch March 19, 2024 16:18
This was referenced Mar 20, 2024
This was referenced Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport size/sm tctl tctl - Teleport admin tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants