Policies
ScaleOps comes with several out-of-the-box production-ready GPU policies that cover the most common GPU workload patterns.
Policies control how GPU compute and memory recommendations are calculated and applied.
Ready-to-Deploy Policies
ScaleOps provides AI-powered, context-aware policy detection — ScaleOps AI Agent analyzes each GPU workload’s behavior and automatically applies the policy that best fits it, optimizing your workloads out of the box.

To use AI-powered policy detection, the Peleg AI SRE Agent must be enabled.
You can also manually select a policy for your workload. The following policies are created by default:
When ScaleOps automatically detects a training or build workload it also creates the following policies — respectively:
Note: The policies are created in the scaleops-system namespace.
Strict real-time
The most conservative GPU policy. Designed for latency-critical inference workloads where any reduction in GPU resources is unacceptable.
Strict real-time preserves the workload’s original GPU resource request as a minimum. This limits optimization and is recommended only for specific use cases where the original resource allocation must be maintained.
Recommended for: GPU workloads with strict resource requirements that cannot be adjusted by optimization.
Real-time
A conservative policy designed for latency-sensitive inference workloads. Uses a longer history window and higher headroom to accommodate variable request patterns.
Recommended for: Model serving, real-time inference, and latency-sensitive GPU workloads.
Real-time-mps
Similar to the Real-time policy but utilizes NVIDIA MPS (Multi-Process Service) technology for optimized GPU sharing performance.
Recommended for: Inference workloads that require low latency and high throughput.
Note: ScaleOps enforces workload isolation when using the Real-time MPS policy — different automated workloads assigned this policy cannot share the same GPU. Each MPS-enabled workload receives its own dedicated GPU device, ensuring no interference between workloads.
Near-real-time
A policy that balances responsiveness with efficiency for near-real-time inference workloads. Uses a shorter history window and tighter headroom than the Real-time policy, making it a good fit for workloads with more predictable request patterns that don’t require the most conservative resource cushion.
Recommended for: Inference workloads with moderate latency tolerance and relatively stable GPU utilization.
Batch
A high-efficiency policy for non-latency-sensitive workloads. Uses the longest history window and minimal headroom, prioritizing GPU utilization over responsiveness. Suitable for workloads that run to completion without serving live traffic.
Recommended for: Offline scoring, batch inference pipelines, and other throughput-oriented GPU workloads.
Training
An efficiency-focused policy for training workloads that typically have consistent GPU utilization.
Recommended for: Model training, fine-tuning, and other GPU workloads with predictable utilization.
Build
Optimized for machine learning development workloads that provides moderate resource allocation for interactive experimentation and prototyping.
Recommended for: GPU-accelerated build and experimentation workloads.
In-Place Optimization Available in v1.35.7+
In-place optimization changes the GPU compute fraction and GPU memory of a running fractional pod without evicting it. It affects only automated pods, and every built-in GPU policy enables it by default. Set updatePolicy.inPlaceUpdateStrategyEnabled to true to keep it on, or to false to turn it off. When an in-place update cannot be applied, ScaleOps uses the automation strategy configured for that workload.
apiVersion: analysis.scaleops.sh/v1alpha1
kind: GpuPolicy
metadata:
name: my-gpu-policy
namespace: scaleops-system
spec:
updatePolicy:
inPlaceUpdateStrategyEnabled: trueIn the UI, open a GPU policy and select the Automation tab. Enable In-place optimization controls the same setting.

Out-of-Memory Detection
Every GPU policy carries a GPU out-of-memory detection setting that controls whether ScaleOps instruments the policy’s workloads to detect GPU out-of-memory events. All built-in policies ship with detection off.
| Field | Type | Default | Description |
|---|---|---|---|
gpuOomDetection.enable | boolean | false | Enable detection for all workloads using this policy |
gpuOomDetection.enableOnlyWithAutomation | boolean | false | Enable detection only for workloads using this policy whose GPU automation is enabled |
apiVersion: analysis.scaleops.sh/v1alpha1
kind: GpuPolicy
metadata:
name: my-gpu-policy
namespace: scaleops-system
spec:
gpuOomDetection:
enable: true
enableOnlyWithAutomation: falseFor what gets injected, how the events are surfaced, and the healing behavior, see GPU Out-of-Memory Detection.
GpuPolicy YAML Reference
Automated Fractional GPUs policies are GpuPolicy custom resources. Create them in the ScaleOps namespace (scaleops-system by default) and attach them with the scaleops.sh/default-gpu-policy annotation. For the rules shared by all policy kinds, see GitOps Policies.
apiVersion: analysis.scaleops.sh/v1alpha1
kind: GpuPolicy
metadata:
name: my-gpu-policy
namespace: scaleops-system
spec:
policyOptimize:
rightSizePolicy:
windowByResource:
gpu-compute: 48h
gpu-memory: 48h
requestsConfigs:
gpu-compute:
percentilePercentage: 90
headroomPercentage: 15
gpu-memory:
percentilePercentage: 95
headroomPercentage: 15
updatePolicy:
inPlaceUpdateStrategyEnabled: true
updateByTypeMode:
argoRollout: Ongoing
daemonSet: OnCreate
deployment: Ongoing
deploymentConfig: Ongoing
family: OnCreate
job: OnCreate
statefulSet: OnCreate
requiredWindowCoveragePercentage: 2
gpuAutoHealing:
enabled: true
gpuOomDetection:
enable: falseA GpuPolicy looks like a rightsizing Policy, but its resource keys are gpu-compute and gpu-memory, not cpu and memory, and it has no limitConfigs. Write windows in hours, for example 168h.
policyOptimize.rightSizePolicy
| Field | Type | Description |
|---|---|---|
windowByResource | map | History window per GPU resource. Keys: gpu-compute, gpu-memory. |
requestsConfigs | map | Request calculation per GPU resource. Keys: gpu-compute, gpu-memory. |
Each requestsConfigs entry takes:
| Field | Type | Description |
|---|---|---|
percentilePercentage | integer | Percentile of GPU usage the recommendation is based on. |
headroomPercentage | integer | Extra buffer added on top of the recommendation, as a percentage. |
minAllowed | string | Lowest recommendation allowed. gpu-compute is in GPU fractions (1 is one full GPU). |
maxAllowed | string | Highest recommendation allowed. |
keepRequest | boolean | Keep the workload’s original GPU request. |
setGpuComputeRequest | string | Set a fixed GPU compute request instead of a recommendation. |
setGpuMemoryRequest | string | Set a fixed GPU memory request instead of a recommendation. |
updatePolicy
| Field | Type | Description |
|---|---|---|
updateByTypeMode | object | When to apply recommendations, per workload type. Keys: deployment, statefulSet, daemonSet, job, deploymentConfig, argoRollout, family. Values: Ongoing or OnCreate. |
requiredWindowCoveragePercentage | integer (0–100) | Share of the history window that must have data before ScaleOps applies changes. |
inPlaceUpdateStrategyEnabled | boolean | Update GPU allocations in place. On unless set to false. |
gpuAutoHealing and gpuOomDetection
| Field | Type | Description |
|---|---|---|
gpuAutoHealing.enabled | boolean | Enable GPU auto-healing. |
gpuAutoHealing.oomAutoHealingEnabled | boolean | Heal GPU out-of-memory events reported by OOM detection. Default: false. gpuOomDetection.enable: true is required for the GPU out-of-memory auto-healing |
gpuOomDetection.enable | boolean | See Out-of-Memory Detection. |
gpuOomDetection.enableOnlyWithAutomation | boolean | See Out-of-Memory Detection. |
A GpuPolicy also accepts autoDetectionRules, with the same structure as in the rightsizing Policy. See Policy Rules.