Terracotta 10.3 | Terracotta Server Administration Guide | Clients in a Cluster
 
Clients in a Cluster
Within the overall structure of the cluster, the clients represent the application end-points. They work independently but can communicate through the active servers of the stripes to which they are connected.
Note that a client only ever interacts with an active server, never directly communicating with a passive server.
In a single-stripe cluster, each client is connected to the active server of that stripe. In a multi-stripe cluster, each client is connected to the active server of each stripe, interacting with them quasi-independently.
Within the logical structure of the cluster, the client isn't the process making the connection, but the connection itself. This means that a single JVM opening multiple connections to the same stripe will be seen by the stripe as multiple, independent clients.
How a client finds an active server
When establishing a connection to a stripe, the client must find the active server. It does this by attempting to connect to each server in the stripe, knowing that only the active server will not reject the connection attempt.
How a client handles failover or restart
If an active server to which a client is attached goes offline, the client will attempt to reconnect to one of the other servers in the stripe, if there are any. This is similar to what happens during its initial connection.
Note that there is no default time-out on this reconnection attempt. In the case that each stripe member is unavailable, this means that it is possible for all clients to wait, blocking their progress, until a server is restarted, potentially days later.

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.