Patent attributes
Some embodiments provide a method, for a first cluster manager (CM), for adding an application instance (AI) to a cluster operating across several datacenters. The method identifies a first AI to add to the cluster and a second AI that already belongs to the cluster, and sends a request to add the first AI to a second CM that operates on a same machine as the second AI. The request includes an address for the first AI and a datacenter identifier that indicates a datacenter in which the first AI operates. From the second CM, the method receives a cluster topology that identifies several AIs of the cluster within the several datacenters. The topology includes a datacenter identifier for each of the identified AIs. The method processes data sent between the first AI and other AIs of the cluster according to an overlay network defined by the received topology.