Selecting slave and client nodes