Size queue based on MaxImbalance
1.0beta.14: Resize queue to prevent deadlock