Skip to content

Explain why workspace is kept alive #17320

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

Open
stirby opened this issue Apr 9, 2025 · 0 comments
Open

Explain why workspace is kept alive #17320

stirby opened this issue Apr 9, 2025 · 0 comments
Labels
customer-requested Features requested by enterprise customers. Only humans may set this.

Comments

@stirby
Copy link
Collaborator

stirby commented Apr 9, 2025

Problem Statement

Many users have reported frustration with workspaces not automatically shutting down as expected with their autostop configuration. The TTL of these workspaces is extended by our activity bump feature, which postpones the shutdown when a user is "active" in a workspace.

However, the definition of activity can be a bit convoluted, and consequently, the activity bump behavior is unpredictable. Administrators want to diagnose exactly why a workspace is being kept alive when seemingly no connections are active. Then, the administrator can hunt down the connection and close it or roll out a permanent solution.

A solution should help administrators understand:

  • When the last time a workspace's TTL was bumped
  • The type of connection that incremented it
  • The source of that connection (some client ID possibly?)

Note

We implemented this previously with a connected pill in the workspace dashboard. However, because viewing a workspace in the dashboard counted as activity, this was practically always active. Additionally, it did not sufficiently inform users on where the connection was coming from.

A proposal

A user suggested logging the events or the last event that bumped activity on the workspace page. Something simple like a schedule tooltip that shows:

Activity detected from <source> <time> ago. 
Activity detected from webterminal 15 minutes ago. 
Activity detected from SSH 46 minutes ago. 
@stirby stirby added the customer-requested Features requested by enterprise customers. Only humans may set this. label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-requested Features requested by enterprise customers. Only humans may set this.
Projects
None yet
Development

No branches or pull requests

1 participant