dynamic scaling for reducers