Dynamic resource shaping for compute clusters