Disabling or changing CPU, GPU and RStudio idle timeout
A cluster administrator can disable or change the default idle timeout of CPU, GPU or RStudio environment runtimes on the shared file system if this is desired.
A change to the idle shutdown setting will only apply for runtimes that are started after the file was changed. Whether a runtime has become idle is checked every 8 minutes, which means that a runtime might be stopped later than the defined idle timeout.
Note that the idle timeout value for RStudio and notebooks runtimes do not have to be the same. Also, you do not have to specify a timeout value for both.
To disable the idle timeout directly on the shared file system:
- Create a file named
idleshutdown.config
and add the following content. The value that you add foridleTimeBeforeShutdown
either enables or disables the idle timeout functionality. The value-1
disables idle timeout. Any other value or an empty file enables it.
{
"jupyterNotebook": {
"idleTimeBeforeShutdown": -1
},
"rStudio": {
"idleTimeBeforeShutdown": -1
}
}
- To change the idle shutdown time, replace
-1
with the idle timeout value in seconds that you want to use for runtimes. All CPU, GPU or RStudio runtimes started after this change will honour this setting. - Copy
idleshutdown.config
to/mnt/user-home/_global_/config/.idleshutdown/
. You can use the asset-files-api pod for this:
oc cp idleshutdown.config $(oc get pods | grep asset-files-api | head -1 | awk '{print $1}'):/mnt/user-home/_global_/config/.idleshutdown/
Parent topic: Stopping active runtimes