Single-level cluster structure |
A single-level cluster structure is composed of one cluster service level and one GIS application level, as shown in figure 3. The cluster service level can have multiple cluster service nodes, and the GIS application level can have multiple GIS application nodes.
Figure 3 A single-level cluster structure
A cluster service node is responsible for the following three tasks:
Updates information on cluster service nodes: It updates the load balancing information of the cluster service node based on the obtained information on GIS application nodes, so that the tasks requested by the client can be accurately allocated based on load balancing information;
Sends feedback to the client: It receives the service request from the client, and then selects the GIS application nodes that satisfy the specified service request based on the load balancing information of the cluster. The node information of the selected GIS application nodes is returned to the client so that the client can be automatically connected to the GIS service that is best for its request.
A GIS application node is responsible for the following tasks:
Reports information on the GIS application node: It reports its current operating status to the cluster service node. The reported information includes information about the GIS services provided by this GIS application node, the load information, and the current status information;
Provides GIS services: After the cluster service connects the client and the GIS application node, the GIS service performs GIS calculation based on the GIS service request submitted by the client. The calculation result is then returned to the client.
Receives information: It is also used to receive feedback from the cluster service about the best GIS service that satisfies the specified service request. The received feedback includes address information, load information, and current status information. All the information is returned to the client.