Skip to main content
rightsizing · aws

SageMaker endpoints averaging at most one invocation a day that could run on a smaller instance

resource types
1
rule IDs covered
1
severity
medium

What does ZopNight detect here?

ZopNight flags in-service SageMaker real-time endpoints whose `Invocations` metric shows traffic above zero but no more than 1 request a day on average over the last 7 days. The finding proposes the next smaller `ml.*` instance and prices it from the two hourly rates, skipping endpoints covered by a Savings Plan.

Signal and threshold

How ZopNight evaluates SageMaker endpoints averaging at most one invocation a day that could run on a smaller instance.
Field Value
Rule IDsRC-1501
Categoryrightsizing
Severitymedium
MetricInvocations, InvocationsPerInstance
Threshold0 < invocations per day <= 1
Evaluation window7d
SourceZopNight
Permissions usedsagemaker:ListEndpoints · sagemaker:DescribeEndpointConfig · cloudwatch:GetMetricStatistics

A trickle of requests on a full-size instance

A real-time endpoint keeps its instances running whether it receives a thousand requests a minute or one a day. The Invocations metric in the AWS/SageMaker namespace counts InvokeEndpoint requests, and the metrics reference says to read it with the Sum statistic. An endpoint whose daily sum is in single digits is running an instance sized for traffic that is not there.

Counting invocations per day

Terminal window
aws cloudwatch get-metric-statistics --namespace AWS/SageMaker --metric-name Invocations \
--dimensions Name=EndpointName,Value=my-endpoint Name=VariantName,Value=AllTraffic \
--start-time 2026-08-26T00:00:00Z --end-time 2026-09-25T00:00:00Z \
--period 86400 --statistics Sum
aws sagemaker describe-endpoint-config --endpoint-config-name my-endpoint-config \
--query 'ProductionVariants[].[VariantName,InstanceType,InitialInstanceCount]'

The low-but-not-zero band

  1. The endpoint is InService and not covered by a Savings Plan or reservation, since on-demand rate differences overstate savings on committed capacity.
  2. At least 7 days of invocation data exist in the metric history ZopNight holds.
  3. Total invocations over the last 7 days, divided by 7, is above 0 and at most 1.
  4. A concrete one-size-smaller ml.* instance exists, and ZopNight has hourly rates for both types.
  5. The endpoint has a positive monthly cost.

If invocation data is missing or covers fewer than 7 days, ZopNight accepts an invocations_low=true tag on the endpoint in place of steps 2 and 3.

Endpoints outside the band

An endpoint with exactly zero invocations is not a downsize case; it belongs to Idle SageMaker Endpoint, No Invocations, and the lower bound keeps the two rules from giving opposite advice on one endpoint. GPU instance types, the smallest size of a family, and types outside ml.* naming produce nothing. The same applies when a rate is missing or the smaller type is not cheaper.

Rate-ratio saving

Terminal window
saving = monthly endpoint cost x (1 - smaller type rate / current type rate)

There is no fallback percentage: without both rates there is no figure and no finding.

Options for a rarely used endpoint

  1. Resize the variant to the smaller instance by creating a new endpoint configuration and calling aws sagemaker update-endpoint. ZopNight can also apply this resize from the recommendation.
  2. For traffic this sparse, consider Serverless Inference, which AWS describes as suited to workloads with idle periods between traffic spurts that can tolerate cold starts.
  3. Check ModelLatency after the change to confirm the smaller instance still meets its target.

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·