Do minInstances and maxInstances work? #316
-
After discussing session- and instance-pre-warming with @JonasHelming , I'd like to raise the question in this forum: Do the Will the Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We prototyped eagerly starting sessions as part of our initial Theia Cloud implementation. However, we currently only support the lazy start option, which does not honor The development of the eager start option has been stalled because attaching a volume to an already running pod requires a restart, which negates the benefits of starting it early. I think this is/was a Docker limitation. So we need to find a solution for this before the eager start mode can be enabled again. During the prototype phase, when a new session was requested by a user, we selected one of the unassigned running deployments and made changes to the ConfigMap that configures the OAuth2Proxy for this deployment. The proxy would pick up these changes, configuring itself to accept connections for the session's user. Before that, all connections were declined. |
Beta Was this translation helpful? Give feedback.
The challenge we're encountering is that Workspaces in TheiaCloud, serving as models for persistent storage, are user-specific. When a user initiates a session with their Workspace A, they expect to access the same data they interacted with during their previous session with Workspace A. Consequently, we cannot identify which storage to attach until the user logs in and requests a session for a specific workspace.
Here are some relevant code pointers:
We have two eager start handlers in the current codebase:
EagerStartAppDefinitionAddedHandler
andEagerStartSessionHandler
.Generally, handlers are bound via methods in
AbstractTheiaCloudOperatorModule
such asbindWorkspaceHandler()
,bindApp…