// If a poller has waited around a while, we can always suggest a decrease.
if pollWaitTime >= c.partitionMgr.config.PollerScalingWaitTime() {
// Decrease if any poll matched after sitting idle for some configured period
physical_task_queue_manager.go
c.recordPollerScaleDecision(metrics.PollerScaleDecisionDown, metrics.PollerScaleReasonIdle)
return &taskqueuepb.PollerScalingDecision{
PollRequestDeltaSuggestion: -1,
}
}
// Avoid spiking pollers crazy fast by limiting how frequently change decisions are issued. Be more permissive when