Google Cloud's Zombie Sweep identifies unused resources
A new guide details how to implement a daily "Zombie Sweep" on Google Cloud to identify and report on unused resources, helping to manage costs.
A new guide outlines how to build a daily "Zombie Sweep" for Google Cloud resources. This system uses Cloud Scheduler, Workflows, Cloud Run, and AlloyDB Express to find and report on idle or forgotten assets. The sweep combines checks from Google's Recommender and the open-source zombiescan-gcp tool. Findings are stored in PostgreSQL, and a daily briefing is generated.
The system leverages AlloyDB Express, a preview configuration for PostgreSQL, known for its predictable billing. It scales to zero compute when idle, and storage is capped at 20 GB. This ensures the sweep itself does not incur unexpected costs. "Zombie resources" are defined as billing resources that no longer perform work, such as stopped VMs with active disks or unused static IPs. The sweep aims to prevent surprise cloud bills by identifying these inefficient resources.
Why it matters
Identifying and eliminating unused cloud resources is crucial for cost optimization. This tool provides a structured approach to prevent unexpected expenses and maintain efficient cloud infrastructure.