Cluster Management
The cluster management components at frontend/data-workbench/src/components/Clusters/ provide compute cluster provisioning, monitoring, and cost tracking.
Components
| Component | File | Purpose |
|---|---|---|
ClustersPanel | ClustersPanel.tsx | Main cluster list view |
ClusterCard | ClusterCard.tsx | Individual cluster status card |
ClusterCostCard | ClusterCostCard.tsx | Cluster cost summary |
NewClusterModal | NewClusterModal.tsx | Cluster creation wizard |
UtilizationBar | UtilizationBar.tsx | CPU/memory utilization bar |
Types
// frontend/data-workbench/src/components/Clusters/types.ts
interface Cluster {
id: string;
name: string;
status: 'running' | 'stopped' | 'starting' | 'error';
size: string;
nodes: number;
cpuUtilization: number;
memoryUtilization: number;
costPerHour: number;
uptime: string;
}ClusterCard
Displays cluster health with:
- Status indicator (running/stopped/error)
- CPU and memory utilization bars
- Cost per hour
- Quick actions (start, stop, resize, delete)
NewClusterModal
Wizard for cluster creation:
- Cluster name and description
- Size selection (small, medium, large, custom)
- Node count configuration
- Auto-scaling rules
- Cost estimation