Skip to main content
idle · gcp

Memorystore for Redis instances with no connected clients for 30 days

resource types
1
rule IDs covered
1
severity
medium

What does ZopNight detect here?

Memorystore for Redis instances are flagged when `redis.googleapis.com/clients/connected` stays below one connection on average and at peak for 30 days, and command throughput, where measured, is also below one operation per second. Memorystore bills provisioned capacity per GiB in one-second increments whether or not anyone uses the cache.

Signal and threshold

How ZopNight evaluates Memorystore for Redis instances with no connected clients for 30 days.
Field Value
Rule IDsRC-1245
Categoryidle
Severitymedium
Metricredis.googleapis.com/clients/connected
Thresholdunder 1 connected client and under 1 op/s
Evaluation window30d
SourceZopNight
Permissions usedredis.instances.list · monitoring.timeSeries.list

Provisioned GiB bill from the moment of creation

Memorystore for Redis charges for capacity you reserve, not for commands you run. Google’s Memorystore pricing says charges start when you create the instance and, whether you use it or not, are based on provisioned capacity in GiB, billed in one-second increments. Price depends on the service tier, the capacity tier the instance falls into and the region. Standard Tier adds cross-zone replication and failover, and read replicas add nodes that bill as well.

A cache left behind by a retired service therefore keeps its full hourly charge.

Measuring client activity yourself

Terminal window
gcloud redis instances list --region=REGION \
--format="table(name,tier,memorySizeGb,state)"

In Metrics Explorer, chart redis.googleapis.com/clients/connected for the instance over 30 days. A line pinned at zero means no application holds a connection. redis.googleapis.com/commands/calls shows whether any commands ran.

Two activity measures, one required

  1. Connected clients stay below 1 on both average and peak across the window. This measure must exist for the instance.
  2. Command throughput, when ZopNight has it, also stays below 1 operation per second on average and at peak.
  3. The measured history spans at least 30 days.
  4. The instance has a known monthly cost.

Signals ZopNight does not treat as activity

CPU is not used as evidence of use: background maintenance and replication can register CPU on an instance that no application touches, and counting it would hide abandoned caches. When the connection metric is missing, or history is shorter than 30 days, the rule stays silent. A single client holding a connection at any point clears the instance.

What the finding is worth

Terminal window
saving = current monthly instance cost
cost after deletion = 0

If the instance must remain for a planned launch, scaling it to a smaller capacity tier is the partial saving.

Decommissioning the cache

  1. Confirm no application configuration, secret or connection string points at the instance’s host and port.
  2. If the data matters, export it to Cloud Storage as an RDB file: gcloud redis instances export gs://BUCKET/FILE.rdb INSTANCE_ID --region=REGION.
  3. Delete the instance: gcloud redis instances delete INSTANCE_ID --region=REGION.
  4. Remove the old host and port from secrets and configuration so nothing tries to reconnect.

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·