From 593d3bf346478cf0bd71828e1e63a38d2b3940d4 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 2 Jan 2026 17:22:14 -0600 Subject: [PATCH] cost: enable CPU throttling for Whisper and FFmpeg Cloud Run services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed cpu-throttling from "false" to "true" for both services. This reduces costs when instances are idle between requests: - Idle CPU billed at ~10% of active rate instead of 100% - Instances still scale to zero after ~15 min of no traffic Trade-off: Slightly slower response when resuming from throttled state, but startup-cpu-boost is still enabled to mitigate cold starts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- infra/cloud-run/ffmpeg-http-service.yaml | 2 +- infra/cloud-run/whisper-http-service.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/cloud-run/ffmpeg-http-service.yaml b/infra/cloud-run/ffmpeg-http-service.yaml index 3d99c58..c9ce22f 100644 --- a/infra/cloud-run/ffmpeg-http-service.yaml +++ b/infra/cloud-run/ffmpeg-http-service.yaml @@ -29,7 +29,7 @@ spec: # Cloud Run Gen2 features run.googleapis.com/execution-environment: gen2 # Required for 8 vCPU - run.googleapis.com/cpu-throttling: "false" # Always-on CPU during requests + run.googleapis.com/cpu-throttling: "true" # Throttle CPU when idle to reduce costs run.googleapis.com/startup-cpu-boost: "true" # Faster cold start spec: diff --git a/infra/cloud-run/whisper-http-service.yaml b/infra/cloud-run/whisper-http-service.yaml index fcbf2ad..9c0afe5 100644 --- a/infra/cloud-run/whisper-http-service.yaml +++ b/infra/cloud-run/whisper-http-service.yaml @@ -28,7 +28,7 @@ spec: # Cloud Run Gen2 features run.googleapis.com/execution-environment: gen2 # Required for 8 vCPU - run.googleapis.com/cpu-throttling: "false" # Always-on CPU during requests + run.googleapis.com/cpu-throttling: "true" # Throttle CPU when idle to reduce costs run.googleapis.com/startup-cpu-boost: "true" # Faster cold start spec: