惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Schneier on Security
H
Help Net Security
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
H
Hacker News: Front Page
C
Check Point Blog
P
Privacy International News Feed
IT之家
IT之家
爱范儿
爱范儿
AWS News Blog
AWS News Blog
The Hacker News
The Hacker News
Stack Overflow Blog
Stack Overflow Blog
Project Zero
Project Zero
Microsoft Azure Blog
Microsoft Azure Blog
量子位
The Cloudflare Blog
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
I
Intezer
Martin Fowler
Martin Fowler
Scott Helme
Scott Helme
酷 壳 – CoolShell
酷 壳 – CoolShell
A
Arctic Wolf
T
Threat Research - Cisco Blogs
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Exploit Database - CXSecurity.com
B
Blog
Simon Willison's Weblog
Simon Willison's Weblog
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
博客园_首页
J
Java Code Geeks
K
Kaspersky official blog
Webroot Blog
Webroot Blog
C
CERT Recently Published Vulnerability Notes
H
Heimdal Security Blog
G
Google Developers Blog
T
Tor Project blog
W
WeLiveSecurity
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Blog — PlanetScale
Blog — PlanetScale
小众软件
小众软件
有赞技术团队
有赞技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
CI/CD Infrastructure Cost: The Budget Leak Hidden in Your Pipelines
Muskan · 2026-05-08 · via DEV Community

Muskan

Most engineering teams audit their production infrastructure. Fewer audit the infrastructure that builds and deploys it. GitHub Actions runner minutes, ECR image layers, artifact archives, and ephemeral test clusters sit in a different budget category from application workloads. They rarely get the same scrutiny. That is where the leak starts.

This is not about what your pipelines deploy. It is about what the pipelines themselves cost.

The Pipeline Tax You Never Budgeted For

CI/CD infrastructure cost has four components that most teams treat as fixed overhead: runner compute, image storage, artifact storage, and ephemeral test environments. Each one looks small per job. At scale, they combine into thousands per month.

The mechanism is velocity multiplication. A team pushing 50 commits per day, each triggering a 10-step pipeline, generates 500 job executions daily. Each job touches runner compute, writes to artifact storage, and often pulls a fresh image. The cost accumulates before anyone notices because it tracks engineering activity, not a resource you consciously provisioned.

Pipeline cost components feeding the monthly bill

The four components interact. A cache miss on an image layer triggers a full rebuild, adding 5 minutes of runner compute and a new ECR write. A bloated artifact archive grows until someone sets a retention policy. An integration test environment that was "temporary" runs for months because no one owns the shutdown.

Runner Costs Compound Faster Than You Think

GitHub Actions hosted runner pricing is straightforward on its surface. Linux runners cost $0.008 per minute. Windows runners cost $0.016 per minute. macOS runners cost $0.08 per minute. The multiplier between Linux and macOS is 10x, which matters when iOS builds or Xcode toolchains require macOS.

A team running 500 CI jobs per day at an average of 8 minutes each on Linux spends $960 per month in runner minutes. The same workload on macOS costs $9,600. Most teams do not frame this as a decision with a $8,640 monthly delta. They pick the runner type once and move on.

Runner Type Rate per Minute 500 jobs/day x 8 min x 30 days
Linux (hosted) $0.008 $960/month
Windows (hosted) $0.016 $1,920/month
macOS (hosted) $0.080 $9,600/month
m5.xlarge EC2 (self-hosted, 15% utilization) ~$0.054 effective $6,480/month equivalent
m5.xlarge EC2 (self-hosted, 70% utilization) ~$0.0046 effective $552/month equivalent

Self-hosted runners look attractive until you factor in idle time. An m5.xlarge instance costs $0.192 per hour on-demand, $132 per month running continuously. At 15% utilization, which is common for teams without autoscaling, the effective per-minute cost is 6.7x the Linux hosted runner rate. The machine runs while engineers sleep. The hosted runner does not.

Self-hosted runners become cost-effective at roughly 3,000 build minutes per month, but only when paired with autoscaling that terminates idle nodes. Below that threshold, or without autoscaling, hosted runners are cheaper and operationally simpler.

Image and Artifact Storage: The Silent Accumulator

Amazon ECR charges $0.10 per GB per month. That rate sounds trivial until you calculate what accumulates without a retention policy.

A team pushing one image per build, at 1.2 GB per image, across 200 builds per day, writes 240 GB of new image data per day. With no lifecycle rule, ECR retains every tag indefinitely. Within a month, that account holds 7.2 TB of image data at $720 per month in storage alone. Most images beyond the last 5-10 tags will never be pulled again.

ECR storage accumulation without lifecycle policy

Docker layer caching reduces per-build image sizes when base layers do not change. A cache miss on a base layer forces a full rebuild. That adds 4-6 minutes of runner compute and a new full-image push to ECR. If a dependency update invalidates the base layer cache across 50 builds per day, that one day of cache misses costs $1.92 in extra runner minutes and $7.20 in new ECR storage.

GitHub Actions artifact storage compounds the same way. The free tier covers 500 MB per repository. Beyond that, storage costs $0.25 per GB per month. Test reports, coverage files, build outputs, and compiled binaries pile up with 90-day default retention. An active monorepo generating 50 MB of artifacts per build, 100 builds per day, accumulates 150 GB of artifact data per month. After the first 500 MB, that is $37.50 per month from a default no one changed.

Ephemeral Environments: When Convenience Costs Dollars Per Build

Integration tests that require a full application stack need somewhere to run. Ephemeral environments that spin up a minimal EKS cluster, a database, and a load balancer for a 45-minute test run cost $2-4 per build. That estimate covers an m5.large node at $0.096/hr for one hour, a NAT gateway at $0.045/hr, and ALB at $0.008/hr. At 100 builds per day, that is $200-400 per day, or $6,000-12,000 per month.

Approach Cost per Build 100 builds/day Monthly Cost
Ephemeral EKS cluster (per build) ~$3 ~$300/day ~$9,000
Always-on shared cluster (m5.xlarge x3) shared ~$1,200 fixed
Always-on cluster (utilization 12%) effective $25/build $1,200 wasted on idle
Shared cluster with namespace isolation ~$0.30 ~$30/day ~$900

Always-on shared clusters have a different problem. Teams that run integration tests on dedicated clusters often leave those clusters running 24/7. The cluster is used for 20-30 build hours per week, but it runs for 168 hours. At 12% utilization, the team is paying for 88 hours of idle compute for every 12 hours of actual test execution.

The answer for most teams is neither full ephemeral per-build nor always-on shared. Namespace-isolated environments on a right-sized shared cluster, with a scheduler that scales the cluster down during low-build hours, bring costs to roughly $0.30 per build while avoiding the cold start time of full cluster provisioning.

Four Changes That Cut Pipeline Spend Without Slowing Delivery

Set ECR lifecycle policies before storage compounds. A lifecycle policy that retains the last 10 tagged images per repository and removes untagged images after 24 hours stops the accumulation. This works immediately on new pushes. It does not retroactively reduce existing storage until the policy runs its first evaluation.

This fails when teams use image tags as immutable audit references for compliance. In that case, move old images to a separate registry with cheaper storage rather than deleting them.

Match artifact retention to actual usage patterns. GitHub Actions default retention is 90 days. Most test reports are useful for 7 days, at most. Setting per-workflow retention to 7-14 days reduces artifact storage by 80-90% without affecting incident response. This breaks when audit requirements mandate build artifact retention. Map artifact type to retention requirement before applying a blanket TTL.

Right-size runners to the job. Not all CI jobs need 8 vCPUs and 32 GB of RAM. Linting, static analysis, and unit tests run cleanly on 2 vCPU, 4 GB machines. Build and integration jobs need more. The real cost of developer platform tooling follows the same principle: default configurations are sized for the worst case, and teams pay for that headroom on every run.

Optimized pipeline with right-sized jobs and TTL policies

Schedule shared CI infrastructure like non-production environments. If your integration test cluster runs 24/7 but builds only occur between 7am and 11pm on weekdays, an automated schedule that scales the cluster to zero nodes overnight and on weekends cuts compute cost by 35-40%. The cluster does not delete, it just has no running nodes. New builds trigger node provisioning, which takes 2-3 minutes on EKS with managed node groups.

This breaks for teams with globally distributed engineers who push commits at all hours. In that case, reduce cluster size during low-traffic windows instead of scaling to zero. Two nodes instead of eight overnight still cuts cost by 62%.

Cloud cost anomaly detection catches when these controls fail. An ECR lifecycle policy that was accidentally overridden, an artifact retention reset by a workflow template update, or a CI cluster that never scaled down after a config change all produce cost spikes that look like application spend but are pipeline spend. Without detection, those anomalies run until the monthly bill review.

The pipeline tax is real. It scales with engineering velocity, which makes it politically difficult to address: the teams generating the most pipeline spend are also the most productive. But the cost is not intrinsic to the work. It is a product of defaults that were never revisited. Changing four settings — lifecycle policies, artifact TTLs, runner sizing, and cluster scheduling — recovers most of the spend without touching the velocity that generated it.