1. For a network controller, a method comprising: identifying a particular data compute node (DCN) for execution on a host machine along with a particular managed forwarding element (MFE) having a plurality of tunnel endpoints for establishing tunnels with other MFEs on other host computers to establish a particular logical network; to the particular MFE, distributing (i) one tunnel endpoint group identifier that is associated with a group of at least two tunnel endpoints that are candidate tunnel endpoints for use for the particular DCN and (ii) a group definition that includes at least two tunnel endpoint identifiers that identify the tunnel endpoints in the tunnel endpoint group, wherein the particular MFE uses the group identifier to identify the definition from which it selects one of the tunnel endpoint identifiers, and then uses the tunnel endpoint associated with the selected tunnel endpoint identifier to send encapsulated packets from the particular DCN to other MFEs.