Selected resources intelligently.

When deploy topologies, give priority to the resources whose owner
is the one owns the topology. Next is the one issued the
deployment. Then the rest.