runai-bgu bash Manual
Introduction
runai-bgu bash is a command-line interface (CLI) for connecting to running workspace workloads on the BGU HPC cluster via an interactive bash shell.
This command allows you to access your running workspaces directly for debugging, monitoring, or interactive development. The command automatically detects the workspace type and establishes a direct connection to the specified pod and container.
This manual explains how to use runai-bgu bash to connect to your workspace environments.
Quick Start
To connect to a running workspace, use:
$ runai-bgu bash my-workspace
Connects to the specified workspace in your default project.
Basic Usage
Connect to Workspace
Connect to the main container of a workspace:
$ runai-bgu bash research-workspace
Establishes an interactive bash session with the workspace named research-workspace.
Advanced Options
Container and Pod Selection
Common Use Cases
Development and Debugging
Access your development environment for interactive work:
$ runai-bgu bash dev-env --stdin --tty
File Management
Connect to manage files within your workspace:
$ runai-bgu bash data-processing-workspace
Prerequisites for Connection
Before connecting to a workspace, ensure:
- Running Status
-
The workspace must be in "Running" status. Use
runai-bgu listorrunai-bgu describeto check status. - Project Access
-
You must have appropriate permissions in the project containing the workspace.
- Network Connectivity
-
Ensure network connectivity to the cluster from your client machine.
- Valid Session
-
Your authentication session must be active. Use
runai-bgu loginif needed.
Understanding Connection Behavior
When you connect to a workspace:
- Shell Environment
-
You get a bash shell with the same environment as your workspace container.
- File System Access
-
Full access to the workspace file system including mounted volumes.
- Process Visibility
-
Can see and interact with processes running in the container.
- Resource Sharing
-
Share CPU, memory, and other resources with existing workspace processes.
Troubleshooting Connection Issues
Workspace Not Found
Check if the workspace exists and is running:
$ runai-bgu list
$ runai-bgu describe my-workspace
Connection Timeout
Increase timeout values for slow-starting workspaces:
$ runai-bgu bash my-workspace --wait-timeout=10m --pod-running-timeout=5m
Best Practices
- Save Work Regularly
-
Always save your work as the connection may be terminated if the workspace stops.
- Monitor Resources
-
Be aware of resource usage to avoid impacting workspace performance.
- Clean Exit
-
Use
exitcommand to cleanly terminate the bash session. - Session Management
-
Keep track of active sessions to avoid resource conflicts.