-
Hello: I deployed theia-cloud in a minikube container and found that the IDE container would be destroyed 30 minutes after it was no longer being used, even if the webpage of the IDE container was not closed. However, when I tried to replace the theia-cloud-demo image with my own image built with theia version 1.37 and successfully started it, the container did not automatically destroy itself even after I actively closed all the webpages. I tried to find out the logic in theia-cloud for determining whether an IDE container is still in use and for its automatic destruction, but the architectural documentation of theia-cloud only defines a session's timeout time in the App Definition CR. In the AppDefinitionSpec.java, I saw the Timeout class and the Monitor class, are these related to detection? Can you explain how theia-cloud determines whether an IDE container is still in use, and is it through the network traffic passed to the IDE container? Really appreciate! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Does the monitor-theia is used to monitor the usage of theia ide container? |
Beta Was this translation helpful? Give feedback.
-
BTW: I don't find the monitor-theia extension in Theia-Cloud official cluster: or the vscode monitor extension: Does this means that Theia-Cloud's official deployment does not use these two extensions? The versions of theia/core and theia/plugin in the dependencies of this plugin are still 1.34.0. If I want to use this plugin, do its dependency versions need to be updated along with Theia's own version? |
Beta Was this translation helpful? Give feedback.
Your assumption is correct, that the operator is the one who is pinging those endpoints and then decides when to shut down the pods.
You always get the
v1beta
field with kubectl because we currently have invalid version numbers (e.g.v8beta
) and it will always default tov1beta
. Note that the resource is still available asv8beta
on the cluster, e.g. by changing your command tokubectl -n theiacloud describe appdefinitions.v8beta.theia.cloud theia-cloud-demo
. We are planning to soonish update the version numbers to valid numbers (e.g.v1beta8
). Then the default output of kubectl should be the latest version. Sorry for the inconvience.