|Configuring Discovery Mechanisms / Using Locators|
GemFire XD thin clients specify the client bind address and port of a locator in order to connect to a GemFire XD cluster.
Connecting to a locator ensures that a client is load-balanced to an available GemFire XD server in the distributed system. If the client's connection to a server is dropped (for example, if the server is shut down), then the client can retry connecting to the same locator to access another available server.
connect client 'locator1host:1527';
In a third-party JDBC tool, specify the host and port in the JDBC connection string:
Locators balance client requests to all GemFire XD servers available in a cluster, so multiple connection requests to the same locator may result in connections to different servers.