Skip to content

cli: ssh: open SSH connection keeps hitting /api/v2/workspaceagents/{workspaceagent}  #8426

@johnstcn

Description

@johnstcn

Problem:

When connecting to a workspace over SSH, we run the following code to show a spinny indicator. If not otherwise specified, AgentOptions.FetchInterval defaults to 500ms.

This never stops running, meaning that 100 workspace connections over SSH equate to 200 requests to /api/v2/workspaceagents/{workspaceagent} per second.

Proposed solution

Once we're connected to the workspace we probably don't need to continue fetching the agent. Just stop the ticker once the connection is established.

Metadata

Metadata

Assignees

Labels

scaletestIssues related to scale testing.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions