915
}
916
918
>
var reason metrics.ReasonString
919
>
stats := statsFn()
920
>
if stats.GetApproximateBacklogCount() > 0 &&
921
>
stats.GetApproximateBacklogAge().AsDuration() > c.partitionMgr.config.PollerScalingBacklogAgeScaleUp() {
922
// Always increase when there is a backlog, even if we're a partition. It's also important to increase for
923
// sticky queues.
924
delta = 1
925
reason = metrics.PollerScaleReasonBacklog
927
// Non-root partitions don't have an appropriate view of the data to make decisions beyond backlog.
928
// Sticky queues are exempt: they aren't considered root but do have a complete view of their data,