Skip to main content
rightsizing · gcp

Standard-class Cloud Storage buckets read almost never that suit Nearline

resource types
1
rule IDs covered
1
severity
low

What does ZopNight detect here?

Standard storage has the highest at-rest price of the main Cloud Storage classes and no minimum storage duration. ZopNight flags buckets whose default class is `STANDARD` and whose average access rate stays below 0.05 operations a day over the last 30 days of available data, and estimates the saving as half the bucket's monthly bill.

Signal and threshold

How ZopNight evaluates Standard-class Cloud Storage buckets read almost never that suit Nearline.
Field Value
Rule IDsRC-1233
Categoryrightsizing
Severitylow
MetricAPI operations per day
Thresholdunder 0.05 operations/day
Evaluation window30d
SourceZopNight
Permissions usedstorage.buckets.list · storage.buckets.get · monitoring.timeSeries.list

Paying hot-data rates for cold data

Cloud Storage prices at-rest data by class. Google’s storage class overview positions Nearline for data “you plan to read or modify on average once per month or less”, trading a 30-day minimum storage duration and retrieval fees for a lower storage rate. Standard has no minimum and no retrieval fee, which is right for busy data and expensive for a bucket nobody opens.

Low-access buckets are common: old exports, datasets from a finished project, archives someone created in the default class because they never picked one.

Checking class and access for a bucket

Terminal window
gcloud storage buckets describe gs://BUCKET_NAME

The output includes the bucket’s default storage class. For access, chart storage.googleapis.com/api/request_count for the bucket in Metrics Explorer over the last month. A flat line near zero is the pattern this rule looks for.

Three gates, all required

  1. The bucket’s default storage class is STANDARD. Nearline, Coldline and Archive buckets are skipped.
  2. The measured access rate averages below 0.05 operations per day over the last 30 days of available data, which is less than one request every 20 days. There is no minimum history, so a bucket with only a few days of data can qualify.
  3. A real monthly cost is known for the bucket.

Missing data is not read as idle

If Cloud Monitoring has no access series for the bucket, ZopNight does not assume it is cold; an uninstrumented bucket’s access pattern is unknown, so no finding is raised. A bucket with no priced cost is also skipped.

A half-the-bill estimate

Terminal window
saving = monthly bucket cost x 0.50

The 0.50 is a fixed estimate of the storage rate gap between Standard and Nearline, applied to the bucket’s whole monthly cost rather than priced from live per-location rates. The real gap varies by location, and the figure assumes the data actually ends up in Nearline.

Moving the bucket’s data to Nearline

  1. Confirm objects are read rarely, and that no job reads the whole bucket on a schedule.
  2. Change the default class: gcloud storage buckets update gs://BUCKET_NAME --default-storage-class=NEARLINE.
  3. Move existing objects too. Google notes that changing the default class “does not affect any of the objects that already exist in the bucket”; use a lifecycle rule or a rewrite for those.
  4. Alternatively enable Autoclass, which moves any object not accessed for 30 days to Nearline. The Autoclass page says retrieval and early deletion fees are not charged, except as part of its enablement charges.

See it fire on your bill.

Connect an account read-only. The first findings land in minutes.

472 rule families across 353 resource types on 22 platforms. Every threshold, metric, and IAM action is documented on these pages before you grant anything.

472 rule families documented
353 resource types covered
read-only default access level
Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·