autoscaler in golang with static thresholds