Share via

SignalR Auto Scale In does not trigger when condition meet

pipi 25 Reputation points
2026-03-02T06:25:03.0333333+00:00

I have setup a metric conditions for scale in/out of SignalR. The scale out works perfectly but it will not scale in. The conditions was at below:

User's image

When the ConnectionCount (Max) is less than 930, it does not trigger. May I know how to resolve the problem?

Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 18,140 Reputation points MVP Volunteer Moderator
    2026-03-02T08:29:13.4933333+00:00

    Hello , Welcome to MS Q&A

    The most likely issue is a time aggregation mismatch in the autoscale configuration.

    Currently, the scale-in rule is configured as:

    Time Grain Statistic: Maximum

    Time Aggregation: Average

    This mismatch prevents the scale-in action from triggering correctly.

    Why This Is a Problem

    You are checking whether:

    Connection Count (Maximum) ≤ 930

    However, Azure evaluates the average of the maximum values over the selected duration.

    This means that if even one minute within the evaluation period has a maximum value greater than 930, the calculated average may still exceed 930 — even if the current maximum value is below 930.

    As a result, the scale-in condition does not get satisfied.

    Quick Fix

    Update the scale-in rule so that the aggregation matches the statistic.

    Current (Incorrect):

    Time Grain Statistic: Maximum

    Time Aggregation: Average

    Correct Configuration:

    Time Grain Statistic: Maximum

    Time Aggregation: Maximum

    The aggregation must align with the selected statistic.


    Update the rule as follows:

    • Metric: Connection Count

    Dimension: Endpoint of connections = All values

    Operator: Less than or equal to

    Threshold: 930

    Duration: 10 minutes (increase from 5 minutes)

    Time Grain: 1 minute

    Time Grain Statistic: Maximum

    Time Aggregation: Maximum

    Action: Decrease count by 1

    Cool Down: 10 minutes (increase from 5 minutes)

    Pls check and let us know.

    Thanks

    Deepanshu


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.