Among these 2 options, first one seems the right choice.
We can run N number of background processes on a single machine whereas each foreground process requires a separate machine.
Thus 3 foreground process on 3 machines and 5 / N jobs of background process on 1 machine