Several BI servers of Foresight Analytics Platform can be used to deploy a fault-tolerant cluster. It will require a balancer, state server and several BI servers, which are set up for working with one state server. Links between all cluster elements can be shown as the following schema:
A balancer can be set up both before web servers and BI servers. As a rule, it is enough to set up a balancer before BI server and set up a web application for the balancer address. Sometimes a web application can be a bottleneck, in this case it is necessary to increase the number of web servers and add the balancer before them. Therefore, users will open the address of the balancer, which will direct queries to one of the web services.
NOTE. Before creating a cluster see general recommendations.
Consider deploying a cluster based on several BI servers of Foresight Analytics Platform, nginx balancer and Memcached state server. To create a cluster, determine the following settings:
Set up all BI servers for using one state server
Set up balancer for working with BI servers
Set up web application for working with balancer
Therefore, a query from the client goes through the web server to the balancer. The balancer selects the BI server, and all queries from this client will be sent to the selected BI server. The BI server after query handling and referring to the DBMS will save parameters of all objects at the state server. If on executing a query the BI server failure occurred, the balancer will resend the query to another BI server, which will restore all necessary objects from the state server, execute the query and create the report for a user.
Schema of the cluster standard operating mode:
Query.
Query to BI server.
Query to DBMS.
Get the response from DBMS.
Save the state.
Response BI server.
Passing the obtained data to web server.
The schema of cluster work on query sending failure:
Query.
Query to BI server. If error occurs, the query is retransmitted to another BI server.
Restore state.
Query to DBMS.
Get the response from DBMS.
Response BI server.
Passing the obtained data to web server.
See also: