Auto-scale when query string is too big or when there's a timeout