Menu

Cutting GPU costs on Kubernetes: time-slicing vs MIG vs spot nodes, and when each one is the right answer
📰

Cutting GPU costs on Kubernetes: time-slicing vs MIG vs spot nodes, and when each one is the right answer

DEV Community: kubernetes·Altostratus Amihai·4 days ago
#lKK0cifm
#devtokubernetes#devto#dev#spot#gpus
Long article (652 words) — no AI summary yet.
Reading 0:00
15s threshold

Seeing wasted GPUs is not the same as cutting them. Every cluster I look at wastes 60-70% of its GPU budget on idle or over-allocated resources, and the fixes are all documented, but they are documented in four different places with four different caveats. Here is the whole picture in one place.

There are three levers. They solve different problems and most clusters need two of them.

Lever 1: Time-slicing, for dev and CI

Time-slicing lets N pods share one physical GPU by time-multiplexing it. You configure the NVIDIA device plugin to advertise, say, 8 replicas per GPU:

# nvidia-device-plugin config version : v1 sharing : timeSlicing : resources : - name : nvidia.com/gpu replicas : 8

Enter fullscreen mode

Exit fullscreen mode

Now eight dev notebooks or CI jobs can each request nvidia.com/gpu: 1 and land on one card.

The catch that bites everyone: there is no memory isolation. One pod can OOM the other seven.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.