Processes in ActiveSpaces
The following processes are involved in creating, maintaining, and querying the data grid:
- TIBCO ActiveSpaces Client Applications
- The client applications use the API libraries shipped with the product to build custom applications. Client applications interact with the data grid by using the proxy process.
- Proxy
- A proxy is a mediator between a client request and the data grid. Based on the client request, the proxy identifies the primary node in a copyset and interacts with the primary node till the request is processed and shared with the client. You can have many proxies in a data grid.
- Realm Service
- A data grid is run inside a TIBCO FTL realm. A TIBCO FTL realm serves as a repository for data grid configuration information and provides communication services that enable all data grid processes to communicate with each other.
- State Keeper
- A state keeper runs internally in the data grid and tracks all the data in the data grid. Each state keeper saves the data locally on the disk. When you start the realm service, the state keeper receives the grid configuration information from the realm service. State keepers are responsible for the following functions:
- Tracking and managing all the copysets in a data grid
- Tracking the proxies in a data grid
- Identifying a primary node in each copyset
- Promoting one of the secondary nodes as primary, in case the primary node of a copyset goes down
- Ensuring consistency as the data grid scales up
- Fault Tolerance in State Keepers
- It is good practice to have three state keepers running in a production environment. A set of fault-tolerant state keeper processes protects the data grid's run time state information and ensures nonstop access to it. One of the state keepers is designated the lead state keeper and supplies this information to the proxies and copyset nodes. If the lead state keeper goes down, one of the secondary state keepers takes over as the lead. In a fault-tolerant set of three state keepers, a quorum of two state keepers must always be running to ensure data consistency in split brain scenarios. If a state keeper is restarted while a quorum is running, one of the running state keepers updates the state of the restarted state keeper. If the number of running state keepers falls below the quorum and the state of a copyset changes (for example, a node goes down), operations on the data grid fails. When this happens, the remaining state keepers must be brought down and then all state keepers must be restarted.
- Node
- For more information on nodes, see Nodes.
- Fault Tolerance in Nodes
- To prevent data loss, you can run up to three nodes per copyset. For production deployments, TIBCO recommends using at least two nodes per copyset.
Copyright © Cloud Software Group, Inc. All rights reserved.