Manage runtimes
This page describes how to manage a Colab Enterprise runtime, including the following tasks:
- Start a runtime.
- Disconnect from a runtime.
- Reconnect to a runtime.
- Change the runtime that you are connected to.
- Delete a runtime.
Required roles
To ensure that your user account has the necessary
permissions to manage a Colab Enterprise runtime,
ask your administrator to grant your user account the
Colab Enterprise User (roles/aiplatform.colabEnterpriseUser
)
IAM role on the project.
For more information about granting roles, see Manage access to projects, folders, and organizations.
Your administrator might also be able to give your user account the required permissions through custom roles or other predefined roles.
Start a runtime
To start a runtime, you can use the Google Cloud console or the gcloud CLI.
Console
To start a runtime:
-
In the Google Cloud console, go to the Colab Enterprise Runtimes page.
-
In the Region menu, select the region that contains your runtime.
-
Select the runtime that you want to start.
-
Click Start.
gcloud
Before using any of the command data below, make the following replacements:
RUNTIME_ID
: the ID of your runtime.PROJECT_ID
: your project ID.REGION
: the region where your runtime is located.
Execute the following command:
Linux, macOS, or Cloud Shell
gcloud colab runtimes start RUNTIME_ID \ --project=PROJECT_ID \ --region=REGION
Windows (PowerShell)
gcloud colab runtimes start RUNTIME_ID ` --project=PROJECT_ID ` --region=REGION
Windows (cmd.exe)
gcloud colab runtimes start RUNTIME_ID ^ --project=PROJECT_ID ^ --region=REGION
For more information about the command for creating a runtime template from the command line, see the gcloud CLI documentation.
Disconnect from a runtime
To disconnect from a runtime:
-
In the Google Cloud console, go to the Colab Enterprise My notebooks page.
-
In the Region menu, select the region that contains your notebook.
-
Open the notebook that you want to disconnect from the runtime.
-
In the header toolbar, click Runtime > Manage sessions. If you don't see the header toolbar, click Toggle header visibility.
-
In the Active sessions pane, click the End session button.
-
Click Terminate.
Reconnect to a runtime
To reconnect to a runtime:
-
In the Google Cloud console, go to the Colab Enterprise My notebooks page.
-
In the Region menu, select the region that contains your notebook.
-
Open a notebook that was recently disconnected from a runtime.
-
In the top right corner of the notebook, click Reconnect.
If the runtime that the notebook was previously connected to is still running, Colab Enterprise connects to it. If that runtime isn't running anymore, it connects to the default runtime.
Change the runtime
To change the runtime that you are connected to:
-
In the Google Cloud console, go to the Colab Enterprise My notebooks page.
-
In the Region menu, select the region that contains your notebook.
-
Open a notebook that is connected to a runtime.
-
In the top right corner of the notebook, click > Change runtime type.
Additional connection options -
Complete the dialog to connect to a runtime.
Delete a runtime
To delete a runtime, you can use the Google Cloud console or the gcloud CLI.
Console
To delete a runtime:
-
In the Google Cloud console, go to the Colab Enterprise Runtimes page.
-
In the Region menu, select the region that contains your runtime.
-
Select the runtime that you want to delete.
-
Click
Delete. -
Click Confirm.
gcloud
Before using any of the command data below, make the following replacements:
RUNTIME_ID
: the ID of your runtime.PROJECT_ID
: your project ID.REGION
: the region where your runtime is located.
Execute the following command:
Linux, macOS, or Cloud Shell
gcloud colab runtimes delete RUNTIME_ID \ --project=PROJECT_ID \ --region=REGION
Windows (PowerShell)
gcloud colab runtimes delete RUNTIME_ID ` --project=PROJECT_ID ` --region=REGION
Windows (cmd.exe)
gcloud colab runtimes delete RUNTIME_ID ^ --project=PROJECT_ID ^ --region=REGION
For more information about the command for creating a runtime template from the command line, see the gcloud CLI documentation.
What's next
- Learn more about runtimes and runtime templates.
- Create a runtime template.