Auto-adapt max pending count