ms2 middleware scaling