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

Remove retrieving nodes and proxy for cluster details #4326

Merged
merged 1 commit into from
Sep 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/web/ui/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,13 @@ type Cluster struct {
func NewClusters(remoteClusters []reversetunnel.RemoteSite) ([]Cluster, error) {
clusters := []Cluster{}
for _, site := range remoteClusters {
cluster, err := GetClusterDetails(site)
if err != nil {
return nil, trace.Wrap(err)
// Other fields such as node count, url, and proxy/auth versions are not set
// because each cluster will need to make network calls to retrieve information
// which does not scale well (ie: 1k clusters, each request will take seconds).
cluster := &Cluster{
Name: site.GetName(),
LastConnected: site.GetLastConnected(),
Status: site.GetStatus(),
}

clusters = append(clusters, *cluster)
Expand Down