When does a cheaper VM cost more?

Say a job needs one hour on a $1-per-hour machine. At an illustrative Spot rate of $0.50 per hour, it looks like a bargain. If two interruptions push total billed runtime to 2.5 hours, the completed result costs $1.25. Extra storage, network and engineer time are still outside that calculation.

Record elapsed time to completion as well. A job that misses the morning reporting deadline can be the wrong candidate for Spot even if its compute bill goes down.

Which retries should count as failures?

A Kubernetes Job can use podFailurePolicy with restartPolicy: Never. An Ignore rule matching the DisruptionTarget pod condition can keep a matching disruption from consuming the Job's retry budget. Decide separately how to handle an application exit code that means the input is invalid.

A retry policy controls what Kubernetes does next. It cannot reconstruct data that existed only in the old process. Check whether the interruptions you observe actually produce the condition your rule matches.

Where should the job resume?

Split a large input into chunks, store completed output durably, and record progress only after the corresponding output is safely written. Give each chunk a stable key so a second attempt cannot publish the same result twice.

Interrupt a staging run halfway through and time the recovery. Compare cost per completed job, elapsed time and duplicate output over several runs. That tells you whether to shorten the checkpoint interval, keep Spot or move deadline-sensitive work to regular capacity.

Bring a batch job that loses useful work when a node goes away. Inframan can help you review the job’s resource requests and scaling options in your AWS or Google Cloud account. Use checkpoint recovery and cost per completed job to evaluate the pilot.

Review scaling for a batch workload