Description of problem:
Cloudshell pod never scales to zero. Therefore indefinitely consuming resources per user per terminal.
Prerequisites (if any, like setup, operators/versions):
Install the che-workspace-controller
Steps to Reproduce:
1. Open the OpenShift command line terminal
2. Wait as long as you want to and observe the pod that was created in the namespace where the workspace was created
Pod will be always be present.
After a certain amount of time (TBD) the pod should scale to 0.
Reproducibility (Always/Intermittent/Only Once):
Requires https://github.com/openshift/console/pull/5332 to merge.
This PR adds support for the endpoint `/api/terminal/$namespace/$workspaceName/activity/tick`
All we need to do is POST a request to this endpoint every X seconds while the user is active in the terminal.
Suggestion: track how long it's been since the last POST request was sent. If activity occurs later than 1 minute since, then send another POST request.
Created attachment 1694908 [details]
command line terminal pods scale to 0
Verified on build version: 4.5.0-0.nightly-2020-06-03-105031
Browser version: firefox 73
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.