Skip to content

GPU Operations Runbook

HeliosDB GPU Operations Runbook

Use this runbook for GPU acceleration enablement, health checks, fallback, and troubleshooting.

Enable/Disable GPU Acceleration

Before enabling GPU acceleration:

  • Confirm supported GPU hardware and drivers.
  • Confirm CUDA or ROCm libraries are installed.
  • Validate HeliosDB configuration.
  • Run a representative query benchmark in staging.

Configuration checks:

Terminal window
nvidia-smi
rocm-smi
heliosdb --gpu-check
heliosdb --config /etc/heliosdb/heliosdb.toml --validate-config

Disable GPU acceleration when hardware health is degraded, GPU memory is exhausted, or CPU fallback gives more stable latency.

GPU Health Monitoring

Monitor:

  • Device availability.
  • GPU temperature.
  • Memory usage.
  • Error counters.
  • Kernel execution failures.
  • Query fallback rate.

Example:

Terminal window
nvidia-smi --query-gpu=name,temperature.gpu,memory.used,memory.total,utilization.gpu --format=csv
curl -s http://heliosdb-node:7000/metrics | grep gpu

GPU Memory Management

If GPU memory pressure is high:

  1. Identify GPU-backed query classes.
  2. Lower batch size or concurrency.
  3. Raise CPU fallback threshold for small queries.
  4. Clear abandoned sessions.
  5. Restart only if memory is leaked and fallback is not sufficient.

Fallback to CPU Procedure

  1. Disable GPU scheduling for new queries.
  2. Let in-flight GPU queries finish or cancel long-running work.
  3. Confirm CPU execution is active.
  4. Monitor latency and CPU pressure.
  5. Record the reason for fallback.

GPU Troubleshooting

SymptomCheckAction
GPU not detectedDriver and container device accessRestart driver path or redeploy node
GPU out of memoryQuery concurrency and batch sizeReduce concurrency or fallback
GPU errorsDevice logs and ECC countersRemove device from serving pool
Slow GPU queryDataset size and transfer overheadUse CPU for small workloads

CUDA/ROCm Diagnostics

Collect diagnostics before replacing hardware:

Terminal window
nvidia-smi -q
nvcc --version
rocm-smi --showallinfo
/opt/rocm/bin/rocminfo